commit
6a83345f89
@ -207,7 +207,7 @@ class FormFile
|
|||||||
return $this->getDocumentsLink($modulepart, $filename, $filedir);
|
return $this->getDocumentsLink($modulepart, $filename, $filedir);
|
||||||
}
|
}
|
||||||
$printer = ($user->rights->printipp->read && $conf->printipp->enabled)?true:false;
|
$printer = ($user->rights->printipp->read && $conf->printipp->enabled)?true:false;
|
||||||
|
$hookmanager->initHooks(array('formfile'));
|
||||||
$forname='builddoc';
|
$forname='builddoc';
|
||||||
$out='';
|
$out='';
|
||||||
$var=true;
|
$var=true;
|
||||||
@ -450,14 +450,18 @@ class FormFile
|
|||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
$genbutton.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
|
$genbutton.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton='';
|
if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton='';
|
||||||
|
|
||||||
$out.= $genbutton;
|
$out.= $genbutton;
|
||||||
$out.= '</th>';
|
$out.= '</th>';
|
||||||
|
|
||||||
if ($printer) $out.= '<th></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>';
|
$out.= '</tr>';
|
||||||
|
|
||||||
// Execute hooks
|
// Execute hooks
|
||||||
@ -529,6 +533,7 @@ class FormFile
|
|||||||
$out.= ($param?'&'.$param:'');
|
$out.= ($param?'&'.$param:'');
|
||||||
$out.= '">'.img_printer().'</a></td>';
|
$out.= '">'.img_printer().'</a></td>';
|
||||||
}
|
}
|
||||||
|
if (is_object($hookmanager)) $out.= $hookmanager->executeHooks('formBuilddocLineOptions',$parameters,$file);
|
||||||
}
|
}
|
||||||
|
|
||||||
$out.= '</tr>';
|
$out.= '</tr>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user