Merge pull request #22221 from dolibit-ut/patch-591
Update evaluation_extrafields.php
This commit is contained in:
commit
aab2afa745
@ -21,9 +21,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file admin/evaluation_extrafields.php
|
* \file htdocs/hrm/admin/evaluation_extrafields.php
|
||||||
* \ingroup hrm
|
* \ingroup hrm
|
||||||
* \brief Page to setup extra fields of hrm
|
* \brief Page to setup extra fields of hrm evaluation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
@ -44,10 +44,12 @@ foreach ($tmptype2label as $key => $val) {
|
|||||||
$type2label[$key] = $langs->transnoentitiesnoconv($val);
|
$type2label[$key] = $langs->transnoentitiesnoconv($val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get Parameters
|
||||||
$action = GETPOST('action', 'aZ09');
|
$action = GETPOST('action', 'aZ09');
|
||||||
$attrname = GETPOST('attrname', 'alpha');
|
$attrname = GETPOST('attrname', 'alpha');
|
||||||
$elementtype = 'hrm_evaluation'; //Must be the $table_element of the class that manage extrafield
|
$elementtype = 'hrm_evaluation'; //Must be the $table_element of the class that manage extrafield
|
||||||
|
|
||||||
|
// Security Check
|
||||||
if (!$user->admin) {
|
if (!$user->admin) {
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user