mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix phpcs
This commit is contained in:
parent
3056635aaf
commit
9747efe050
|
|
@ -312,7 +312,6 @@ if ($id > 0 || $ref) {
|
|||
$parameters = array();
|
||||
$reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||
if (empty($reshook)) {
|
||||
|
||||
if (empty($object->date_trans)) {
|
||||
if ($object->type == 'bank-transfer') print dolGetButtonAction($langs->trans("SetToStatusSent"), '', 'default', 'card.php?action=settransmitted&token='.newToken().'&id='.$object->id, '', $user->rights->paymentbybanktransfer->send);
|
||||
else print dolGetButtonAction($langs->trans("SetToStatusSent"), '', 'default', 'card.php?action=settransmitted&token='.newToken().'&id='.$object->id, '', $user->rights->prelevement->bons->send);
|
||||
|
|
|
|||
|
|
@ -191,10 +191,8 @@ if ($action == 'create') {
|
|||
print '</form>';
|
||||
|
||||
dol_set_focus('input[name="label"]');
|
||||
}
|
||||
|
||||
// Part to edit record
|
||||
elseif (($id || $ref) && $action == 'edit') {
|
||||
} elseif (($id || $ref) && $action == 'edit') {
|
||||
// Part to edit record
|
||||
print load_fiche_titre($langs->trans("ProductAttribute"), '', 'object_' . $object->picto);
|
||||
|
||||
print '<form method="POST" action="' . $_SERVER["PHP_SELF"] . '">';
|
||||
|
|
@ -224,10 +222,8 @@ elseif (($id || $ref) && $action == 'edit') {
|
|||
print '</div>';
|
||||
|
||||
print '</form>';
|
||||
}
|
||||
|
||||
// Part to show record
|
||||
elseif ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
|
||||
} elseif ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'create'))) {
|
||||
// Part to show record
|
||||
$res = $object->fetch_optionals();
|
||||
|
||||
$head = productAttributePrepareHead($object);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user