Skip to content

Commit

Permalink
add columns if active hooks use the formBuilddocLineOptions method
Browse files Browse the repository at this point in the history
  • Loading branch information
csalvador committed Jun 26, 2013
1 parent bfedddd commit 117ddbd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion htdocs/core/class/html.formfile.class.php
Expand Up @@ -455,7 +455,13 @@ function showdocuments($modulepart,$filename,$filedir,$urlsource,$genallowed,$de
$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
Expand Down

0 comments on commit 117ddbd

Please sign in to comment.