For thirdparty use new method to display extrafield values
This commit is contained in:
parent
1ab1d74c77
commit
2b587e1742
@ -1761,31 +1761,7 @@ else
|
||||
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
|
||||
if (empty($reshook) && ! empty($extrafields->attribute_label))
|
||||
{
|
||||
$e=0;
|
||||
foreach($extrafields->attribute_label as $key=>$label)
|
||||
{
|
||||
$colspan='3';
|
||||
$value=(isset($_POST["options_".$key])?$_POST["options_".$key]:(isset($object->array_options['options_'.$key])?$object->array_options['options_'.$key]:''));
|
||||
if ($extrafields->attribute_type[$key] == 'separate')
|
||||
{
|
||||
print $extrafields->showSeparator($key);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (($e % 2) == 0)
|
||||
{
|
||||
print '<tr>';
|
||||
$colspan='0';
|
||||
}
|
||||
print '<td>'.$label.'</td>';
|
||||
print '<td colspan="'.$colspan.'">';
|
||||
print $extrafields->showOutputField($key,$value);
|
||||
print "</td>";
|
||||
|
||||
if (($e % 2) == 1) print '</tr>';
|
||||
$e++;
|
||||
}
|
||||
}
|
||||
print $object->showOptionals($extrafields);
|
||||
}
|
||||
|
||||
// Ban
|
||||
|
||||
Loading…
Reference in New Issue
Block a user