Merge pull request #13208 from oscim/patch-25
Update emailcollector_card.php
This commit is contained in:
commit
3d436eb645
@ -573,6 +573,18 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
|
|||||||
'recordevent'=>'RecordEvent');
|
'recordevent'=>'RecordEvent');
|
||||||
if ($conf->projet->enabled) $arrayoftypes['project'] = 'CreateLeadAndThirdParty';
|
if ($conf->projet->enabled) $arrayoftypes['project'] = 'CreateLeadAndThirdParty';
|
||||||
if ($conf->ticket->enabled) $arrayoftypes['ticket'] = 'CreateTicketAndThirdParty';
|
if ($conf->ticket->enabled) $arrayoftypes['ticket'] = 'CreateTicketAndThirdParty';
|
||||||
|
|
||||||
|
// support hook for add action
|
||||||
|
$parameters = array( 'arrayoftypes' => $arrayoftypes ) ;
|
||||||
|
$res = $hookmanager->executeHooks('addMoreActionsEmailCollector', $parameters, $object, $action);
|
||||||
|
|
||||||
|
if($res)
|
||||||
|
$arrayoftypes = $hookmanager->resArray;
|
||||||
|
else
|
||||||
|
foreach($hookmanager->resArray as $k=>$desc)
|
||||||
|
$arrayoftypes[$k]=$desc;
|
||||||
|
|
||||||
|
|
||||||
print $form->selectarray('operationtype', $arrayoftypes, '', 1, 0, 0, '', 1, 0, 0, '', 'maxwidth300');
|
print $form->selectarray('operationtype', $arrayoftypes, '', 1, 0, 0, '', 1, 0, 0, '', 'maxwidth300');
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
print '<input type="text" name="operationparam">';
|
print '<input type="text" name="operationparam">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user