FIX Missing value of $formconfirm as parameters of hook
This commit is contained in:
parent
471e1d71a0
commit
3a9e238dc6
@ -349,7 +349,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -224,7 +224,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -449,7 +449,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -1953,7 +1953,7 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -2064,7 +2064,7 @@ if ($action == 'create' && $usercancreate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
// Note that $action and $object may be modified by hook
|
// Note that $action and $object may be modified by hook
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action);
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action);
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
|
|||||||
@ -3889,7 +3889,7 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -248,7 +248,7 @@ if ($id > 0 || $ref)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
/*$parameters = array();
|
/*$parameters = array('formConfirm' => $formconfirm);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm.=$hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm.=$hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm=$hookmanager->resPrint;*/
|
elseif ($reshook > 0) $formconfirm=$hookmanager->resPrint;*/
|
||||||
|
|||||||
@ -1356,6 +1356,7 @@ else
|
|||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
|
'formConfirm' => $formconfirm,
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
//'lineid' => $lineid,
|
//'lineid' => $lineid,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1693,7 +1693,7 @@ elseif ($id || $ref)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array();
|
$parameters = array('formConfirm' => $formconfirm);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -261,7 +261,7 @@ if ($id > 0 || !empty($ref))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array();
|
$parameters = array('formConfirm' => $formconfirm);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -1168,7 +1168,7 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
|
|
||||||
if (!$formconfirm)
|
if (!$formconfirm)
|
||||||
{
|
{
|
||||||
$parameters = array('lineid'=>$lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid'=>$lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -1907,7 +1907,7 @@ elseif (!empty($object->id))
|
|||||||
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 0, 1);
|
$formconfirm = $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&lineid='.$lineid, $langs->trans('DeleteProductLine'), $langs->trans('ConfirmDeleteProductLine'), 'confirm_deleteline', '', 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
$parameters = array('lineid'=>$lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid'=>$lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -2406,7 +2406,7 @@ else
|
|||||||
|
|
||||||
if (!$formconfirm)
|
if (!$formconfirm)
|
||||||
{
|
{
|
||||||
$parameters = array('lineid'=>$lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid'=>$lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -311,7 +311,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -406,7 +406,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -442,7 +442,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -240,7 +240,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -174,7 +174,7 @@ if ($object->id > 0)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -362,7 +362,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array();
|
$parameters = array('formConfirm' => $formconfirm);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -1277,7 +1277,7 @@ elseif ($id || $ref)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$formconfirm) {
|
if (!$formconfirm) {
|
||||||
$parameters = array();
|
$parameters = array('formConfirm' => $formconfirm);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -1441,7 +1441,7 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -211,7 +211,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
@ -247,7 +247,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call Hook formConfirm
|
// Call Hook formConfirm
|
||||||
$parameters = array('lineid' => $lineid);
|
$parameters = array('formConfirm' => $formconfirm, 'lineid' => $lineid);
|
||||||
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formConfirm', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
if (empty($reshook)) $formconfirm .= $hookmanager->resPrint;
|
||||||
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
elseif ($reshook > 0) $formconfirm = $hookmanager->resPrint;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user