FIX : PR returns
This commit is contained in:
parent
ae60f452cc
commit
55e9908601
@ -100,9 +100,15 @@ if ($action == 'confirm_paid' && $user->rights->salaries->write && $confirm == '
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($action == 'setfk_user' && $user->rights->salaries->write) {
|
if($action == 'setfk_user' && $user->rights->salaries->write) {
|
||||||
$object->fetch($id);
|
$result = $object->fetch($id);
|
||||||
|
if ($result > 0){
|
||||||
$object->fk_user = $fk_user;
|
$object->fk_user = $fk_user;
|
||||||
$object->update($user);
|
$object->update($user);
|
||||||
|
} else {
|
||||||
|
dol_print_error($db);
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'reopen' && $user->rights->salaries->write) {
|
if ($action == 'reopen' && $user->rights->salaries->write) {
|
||||||
@ -641,8 +647,13 @@ if ($id)
|
|||||||
|
|
||||||
if(!empty($object->fk_user)) {
|
if(!empty($object->fk_user)) {
|
||||||
$userstatic = new User($db);
|
$userstatic = new User($db);
|
||||||
$userstatic->fetch($object->fk_user);
|
$result = $userstatic->fetch($object->fk_user);
|
||||||
|
if ($result > 0){
|
||||||
$morehtmlref .= $userstatic->getNomUrl(1);
|
$morehtmlref .= $userstatic->getNomUrl(1);
|
||||||
|
} else {
|
||||||
|
dol_print_error($db);
|
||||||
|
exit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$morehtmlref .= '<br>'.$langs->trans('Employee').' : ';
|
$morehtmlref .= '<br>'.$langs->trans('Employee').' : ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user