Update job_card.php
This commit is contained in:
parent
cc4bb9b40f
commit
6430310d74
@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file job_card.php
|
* \file htdocs/hrm/job_card.php
|
||||||
* \ingroup hrm
|
* \ingroup hrm
|
||||||
* \brief Page to create/edit/view job
|
* \brief Page to create/edit/view job
|
||||||
*/
|
*/
|
||||||
@ -36,7 +36,7 @@ require_once DOL_DOCUMENT_ROOT . '/hrm/class/job.class.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_job.lib.php';
|
require_once DOL_DOCUMENT_ROOT . '/hrm/lib/hrm_job.lib.php';
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array("hrm", "other", 'products'));
|
$langs->loadLangs(array('hrm', 'other', 'products')); // why products?
|
||||||
|
|
||||||
// Get parameters
|
// Get parameters
|
||||||
$id = GETPOST('id', 'int');
|
$id = GETPOST('id', 'int');
|
||||||
@ -76,7 +76,7 @@ if (empty($action) && empty($id) && empty($ref)) {
|
|||||||
// Load object
|
// Load object
|
||||||
include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
|
include DOL_DOCUMENT_ROOT . '/core/actions_fetchobject.inc.php'; // Must be include, not include_once.
|
||||||
|
|
||||||
|
// Permissions
|
||||||
$permissiontoread = $user->rights->hrm->all->read;
|
$permissiontoread = $user->rights->hrm->all->read;
|
||||||
$permissiontoadd = $user->rights->hrm->all->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
|
$permissiontoadd = $user->rights->hrm->all->write; // Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
|
||||||
$permissiontodelete = $user->rights->hrm->all->delete;
|
$permissiontodelete = $user->rights->hrm->all->delete;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user