FIX Bad condition on button back to draft on recruitment job.
This commit is contained in:
parent
a626b1b693
commit
70e2fcee16
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||
}
|
||||
|
||||
// Back to draft
|
||||
if ($object->status == $object::STATUS_VALIDATED) {
|
||||
if ($object->status == $object::STATUS_VALIDATED || $object->status == $object::STATUS_RECRUITED) {
|
||||
if ($permissiontoadd) {
|
||||
print dolGetButtonAction('', $langs->trans('SetToDraft'), 'default', $_SERVER["PHP_SELF"].'?id='.$object->id.'&action=confirm_setdraft&confirm=yes&token='.newToken(), '', $permissiontoadd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue