Update card.php

This commit is contained in:
Frans Bosman 2019-08-22 09:43:04 +02:00 committed by GitHub
parent 30266b00eb
commit e15d91640b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1758,7 +1758,14 @@ if ($action == 'create' && $usercancreate)
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action);
print $hookmanager->resPrint;
if (empty($reshook)) {
print $object->showOptionals($extrafields, 'edit');
// copy from thirdparty
$tpExtrafields = new Extrafields($db);
$tpExtrafieldLabels = $tpExtrafields->fetch_name_optionals_label($soc->table_element);
if ($soc->fetch_optionals() > 0) {
$object->array_options = array_merge($object->array_options, $soc->array_options);
}
print $object->showOptionals($extrafields, 'edit');
}
// Template to use by default