|
@@ -142,9 +142,10 @@ class FormTicket
|
|
|
* @param string $mode Mode ('create' or 'edit')
|
|
|
* @param int $public 1=If we show the form for the public interface
|
|
|
* @param Contact|null $with_contact [=NULL] Contact to link to this ticket if exists
|
|
|
+ * @param string $action [=''] Action in card
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function showForm($withdolfichehead = 0, $mode = 'edit', $public = 0, Contact $with_contact = null)
|
|
|
+ public function showForm($withdolfichehead = 0, $mode = 'edit', $public = 0, Contact $with_contact = null, $action = '')
|
|
|
{
|
|
|
global $conf, $langs, $user, $hookmanager;
|
|
|
|
|
@@ -634,7 +635,7 @@ class FormTicket
|
|
|
|
|
|
// Other attributes
|
|
|
$parameters = array();
|
|
|
- $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $ticketstat, $this->action); // Note that $action and $object may have been modified by hook
|
|
|
+ $reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $ticketstat, $action); // Note that $action and $object may have been modified by hook
|
|
|
if (empty($reshook)) {
|
|
|
print $ticketstat->showOptionals($extrafields, 'create');
|
|
|
}
|