Merge pull request #11371 from bafbes/abb90058

New:Show labels of countries in modulebuilder
This commit is contained in:
Laurent Destailleur 2019-10-08 15:17:16 +02:00 committed by GitHub
commit 06eedece26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,4 +334,19 @@ class Ccountry // extends CommonObject
return 1;
}
}
/**
* Return a link to the object card (with optionaly the picto)
*
* @param int $withpicto Include picto in link (0=No picto, 1=Include picto into link, 2=Only picto)
* @param string $option On what the link point to ('nolink', ...)
* @param int $notooltip 1=Disable tooltip
* @param string $morecss Add more css on link
* @param int $save_lastsearch_value -1=Auto, 0=No save of lastsearch_values when clicking, 1=Save lastsearch_values whenclicking
* @return string String with URL
*/
function getNomUrl($withpicto=0, $option='', $notooltip=0, $morecss='', $save_lastsearch_value=-1)
{
global $langs;
return $langs->trans($this->label);
}
}