Add ficheinter in GetElementURL for action

This commit is contained in:
fhenry 2013-05-18 22:17:46 +02:00
parent fefb21a56e
commit 181ce52223
2 changed files with 4 additions and 1 deletions

View File

@ -2517,6 +2517,9 @@ abstract class CommonObject
if ($objecttype == 'cabinetmed_cons') { if ($objecttype == 'cabinetmed_cons') {
$classpath = 'cabinetmed/class'; $module='cabinetmed'; $subelement='cabinetmedcons'; $classpath = 'cabinetmed/class'; $module='cabinetmed'; $subelement='cabinetmedcons';
} }
if ($objecttype == 'ficheinter') {
$classpath = 'fichinter/class'; $module='ficheinter'; $subelement='fichinter';
}
//print "objecttype=".$objecttype." module=".$module." subelement=".$subelement; //print "objecttype=".$objecttype." module=".$module." subelement=".$subelement;

View File

@ -526,7 +526,7 @@ class Fichinter extends CommonObject
* @param int $withpicto 0=_No picto, 1=Includes the picto in the linkn, 2=Picto only * @param int $withpicto 0=_No picto, 1=Includes the picto in the linkn, 2=Picto only
* @return string String with URL * @return string String with URL
*/ */
function getNomUrl($withpicto=0) function getNomUrl($withpicto=0,$option='')
{ {
global $langs; global $langs;