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
|