Merge pull request #20933 from atm-maxime/fix_recruitment_missing_const

Fix missing const in recruitment module
This commit is contained in:
Laurent Destailleur 2022-05-21 00:24:01 +02:00 committed by GitHub
commit fffd655442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,9 +134,20 @@ class modRecruitment extends DolibarrModules
// Example: $this->const=array(1 => array('RECRUITMENT_MYNEWCONST1', 'chaine', 'myvalue', 'This is a constant to add', 1),
// 2 => array('RECRUITMENT_MYNEWCONST2', 'chaine', 'myvalue', 'This is another constant to add', 0, 'current', 1)
// );
$this->const = array(
// 1 => array('RECRUITMENT_MYCONSTANT', 'chaine', 'avalue', 'This is a constant to add', 1, 'allentities', 1)
);
$r = 0;
$this->const[$r][0] = "RECRUITMENT_RECRUITMENTJOBPOSITION_ADDON";
$this->const[$r][1] = "chaine";
$this->const[$r][2] = "mod_recruitmentjobposition_standard";
$this->const[$r][3] = 'Name of manager to generate recruitment job position ref number';
$this->const[$r][4] = 0;
$r++;
$this->const[$r][0] = "RECRUITMENT_RECRUITMENTCANDIDATURE_ADDON";
$this->const[$r][1] = "chaine";
$this->const[$r][2] = "mod_recruitmentcandidature_standard";
$this->const[$r][3] = 'Name of manager to generate recruitment candidature ref number';
$this->const[$r][4] = 0;
$r++;
// Some keys to add into the overwriting translation tables
/*$this->overwrite_translation = array(