dolibarr-dev
[Top][All Lists]
Advanced

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

[Dolibarr-dev] Object linked to actioncomm


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

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



reply via email to

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