Fix CI
This commit is contained in:
parent
534aec349c
commit
a8d3fd8db2
1 changed files with 2 additions and 12 deletions
|
|
@ -324,9 +324,6 @@ if (empty($reshook)) {
|
|||
setEventMessages($object->error, $object->errors, 'errors');
|
||||
}
|
||||
}
|
||||
} elseif ($action == 'setlabel' && $permissiontoadd) {
|
||||
// Set bank account
|
||||
$result = $object->setValueFrom('libelle', $label, '', null, 'text', '', $user);
|
||||
} elseif ($action == 'setbankaccount' && $permissiontoadd) {
|
||||
// Set bank account
|
||||
$result = $object->setBankAccount(GETPOSTINT('fk_account'));
|
||||
|
|
@ -394,15 +391,8 @@ if (empty($reshook)) {
|
|||
// Multicurrency rate
|
||||
$result = $object->setMulticurrencyRate((float) price2num(GETPOST('multicurrency_tx')), GETPOSTINT('calculation_mode'));
|
||||
} elseif ($action == 'setlabel' && $permissiontoadd) {
|
||||
// Set label
|
||||
$object->fetch($id);
|
||||
$object->label = GETPOST('label');
|
||||
$object->label = $object->label;
|
||||
$result = $object->update($user);
|
||||
|
||||
if ($result < 0) {
|
||||
dol_print_error($db);
|
||||
}
|
||||
// Set bank account
|
||||
$result = $object->setValueFrom('libelle', $label, '', null, 'text', '', $user);
|
||||
}
|
||||
|
||||
// Delete line
|
||||
|
|
|
|||
Loading…
Reference in a new issue