FIX saving of numbering module for jobs
This commit is contained in:
parent
10674a59bb
commit
7197085126
@ -68,7 +68,7 @@ class mod_evaluation_advanced extends ModeleNumRefEvaluation
|
|||||||
$texte .= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
$texte .= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
$texte .= '<input type="hidden" name="token" value="'.newToken().'">';
|
$texte .= '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
$texte .= '<input type="hidden" name="action" value="updateMask">';
|
$texte .= '<input type="hidden" name="action" value="updateMask">';
|
||||||
$texte .= '<input type="hidden" name="maskconstBom" value="HRM_EVALUATION_ADVANCED_MASK">';
|
$texte .= '<input type="hidden" name="maskconstEvaluation" value="HRM_EVALUATION_ADVANCED_MASK">';
|
||||||
$texte .= '<table class="nobordernopadding" width="100%">';
|
$texte .= '<table class="nobordernopadding" width="100%">';
|
||||||
|
|
||||||
$tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("Evaluation"), $langs->transnoentities("Evaluation"));
|
$tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("Evaluation"), $langs->transnoentities("Evaluation"));
|
||||||
|
|||||||
@ -93,11 +93,11 @@ if ((float) DOL_VERSION >= 6) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'updateMask') {
|
if ($action == 'updateMask') {
|
||||||
$maskconstorder = GETPOST('maskconstorder', 'alpha');
|
$maskconst = GETPOST('maskconst', 'alpha');
|
||||||
$maskorder = GETPOST('maskorder', 'alpha');
|
$maskvalue = GETPOST('maskRecruitmentJobPosition', 'alpha');
|
||||||
|
|
||||||
if ($maskconstorder) {
|
if ($maskconst) {
|
||||||
$res = dolibarr_set_const($db, $maskconstorder, $maskorder, 'chaine', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, $maskconst, $maskvalue, 'chaine', 0, '', $conf->entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!($res > 0)) {
|
if (!($res > 0)) {
|
||||||
|
|||||||
@ -68,8 +68,8 @@ class mod_recruitmentjobposition_advanced extends ModeleNumRefRecruitmentJobPosi
|
|||||||
$texte .= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
$texte .= '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
$texte .= '<input type="hidden" name="token" value="'.newToken().'">';
|
$texte .= '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
$texte .= '<input type="hidden" name="action" value="updateMask">';
|
$texte .= '<input type="hidden" name="action" value="updateMask">';
|
||||||
$texte .= '<input type="hidden" name="maskconstBom" value="RECRUITMENT_RECRUITMENTJOBPOSITION_ADVANCED_MASK">';
|
$texte .= '<input type="hidden" name="maskconst" value="RECRUITMENT_RECRUITMENTJOBPOSITION_ADVANCED_MASK">';
|
||||||
$texte .= '<table class="nobordernopadding" width="100%">';
|
$texte .= '<table class="nobordernopadding centpercent">';
|
||||||
|
|
||||||
$tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("RecruitmentJobPosition"), $langs->transnoentities("RecruitmentJobPosition"));
|
$tooltip = $langs->trans("GenericMaskCodes", $langs->transnoentities("RecruitmentJobPosition"), $langs->transnoentities("RecruitmentJobPosition"));
|
||||||
$tooltip .= $langs->trans("GenericMaskCodes2");
|
$tooltip .= $langs->trans("GenericMaskCodes2");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user