dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] Object linked to actioncomm


From: Jean-François FERRY
Subject: Re: [Dolibarr-dev] Object linked to actioncomm
Date: Wed, 22 Aug 2012 12:43:23 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

Le 22/08/2012 12:36, Régis Houssin a écrit :
pourquoi tu n'appelles pas l'élément "agefodd_session" tout court ?
pourquoi deux fois "agefodd" ?

car la classe cherchée est alors  agefodd/class/session.class.php et actuellement c'est agefodd/class/agefodd_session.class.php (et jusqu'à hier c'était agefodd/session/class/agefodd_session.class.php)




Le 22/08/12 12:23, Jean-François FERRY a écrit :
Hello,

For the module 'agefodd' we need to link object session with actioncomm but
When insert in llx_actioncomm the 'elementtype' value is 'agefodd_agefodd_session'
The classname is "Agefodd_session".

But function getElementUrl() used in /comm/action/fiche.php doesn't accept two undersore in  $objecttype value :(

In this function I've modified :

if (preg_match('/^([^_]+)_([^_]+)/i',$objecttype,$regs))

in

if (preg_match('/^([^_]+)_(.*+)/i',$objecttype,$regs))

to correct but it' for dev only and require table modification on structure to pass varchar at 32 :\

It would be nice to use the @ sign to designate the module as example for loading a language file, it would be utilier underscore in class names.

Otherwise we need classes renamed (again).

Or so I plant completely how to, thank you in this case to explain how to do it :)

Regards,

JF

P.S : this is valable for Dolibarr 3.2.0




_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev

Cordialement,
-- 
Régis Houssin
---------------------------------------------------------
Cap-Networks
Cidex 1130
34, route de Gigny
71240 MARNAY
FRANCE
VoIP: +33 1 83 62 40 03
GSM: +33 6 33 02 07 97
Web: http://www.cap-networks.com/
Email: address@hidden

Dolibarr developer: address@hidden
Web Portal: http://www.dolibarr.fr/
SaaS offers: http://www.dolibox.fr/
Shop: http://www.dolistore.com/
Development platform: https://doliforge.org/
---------------------------------------------------------


reply via email to

[Prev in Thread] Current Thread [Next in Thread]