Skip to content

Commit

Permalink
Evarisk#3942 [PreventionPlan] add: remove unecessary arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-francois committed Jun 14, 2024
1 parent dc1c686 commit 653c2f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions view/preventionplan/preventionplan_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,6 @@ class="attachment-thumbail size-thumbnail photo photowithmargin" alt="">
$filedirArray[] = $filedir;

$modulepart = 'digiriskdolibarr:FirePermitDocument';
$defaultmodel = $conf->global->DIGIRISKDOLIBARR_FIREPERMITDOCUMENT_DEFAULT_MODEL;
$title = $langs->trans('FirePermitDocument');

$filelist = array_merge($filelist, dol_dir_list($filedir, 'files'));
Expand All @@ -1502,7 +1501,7 @@ class="attachment-thumbail size-thumbnail photo photowithmargin" alt="">
}
$urlsource = $_SERVER["PHP_SELF"] . '?id=' . $object->id;

print saturne_show_documents($modulepart, $dirFilesArray, $filedirArray, $urlsource, 0, 0, '', 1, 0, 0, 0, 0, $title, 0, 0, empty($soc->default_lang) ? '' : $soc->default_lang, $object, 0, 'remove_file', (($object->status > $object::STATUS_VALIDATED) ? 1 : 0), $langs->trans('ObjectMustBeLockedToGenerate', ucfirst($langs->transnoentities('The' . ucfirst($object->element)))));
print saturne_show_documents($modulepart, $dirFilesArray, $filedirArray, $urlsource, 0, 0, '', 1, 0, 0, 0, 0, $title, 0, 0);
}

if ($permissiontoadd) {
Expand Down

0 comments on commit 653c2f1

Please sign in to comment.