add columns if active hooks use the formBuilddocLineOptions method

This commit is contained in:
Cédric Salvador 2013-06-26 11:09:03 +02:00
parent bfedddd95e
commit 117ddbdff2

View File

@ -455,7 +455,13 @@ class FormFile
$out.= '</th>';
if ($printer) $out.= '<th></th>';
if($hookmanager->hooks['formfile'])
{
foreach($hookmanager->hooks['formfile'] as $module)
{
if(method_exists($module, 'formBuilddocLineOptions')) $out .= '<th></th>';
}
}
$out.= '</tr>';
// Execute hooks