Skip to content

Commit

Permalink
#2332 [PreventionPlan] fix: add filter type files for check dol_dir_l…
Browse files Browse the repository at this point in the history
…ist prevent error du to specimen dir
  • Loading branch information
nicolas-eoxia committed Sep 16, 2022
1 parent 17a54e2 commit ddf5a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/preventionplan/preventionplan_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ class="attachment-thumbail size-thumbnail photo photowithmargin" alt="">
$genallowed = 1;
}

print digiriskshowdocuments($modulepart, $dir_files, $filedir, $urlsource, $genallowed, 0, $defaultmodel, 1, 0, '', $title, '', '', $preventionplandocument, 0, 'remove_file', $object->status == 3 && empty(dol_dir_list($filedir)), $langs->trans('PreventionPlanMustBeLocked'));
print digiriskshowdocuments($modulepart, $dir_files, $filedir, $urlsource, $genallowed, 0, $defaultmodel, 1, 0, '', $title, '', '', $preventionplandocument, 0, 'remove_file', $object->status == 3 && empty(dol_dir_list($filedir, 'files')), $langs->trans('PreventionPlanMustBeLocked'));
}

if ($permissiontoadd) {
Expand Down

0 comments on commit ddf5a4a

Please sign in to comment.