Skip to content

Commit

Permalink
[Photo] add: disable button if no selected photo and sortorder param
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Sep 21, 2021
1 parent b7ae41f commit 5177f6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tpl/digiriskdolibarr_photo_view.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
<div class="wpeo-gridlayout grid-4 grid-gap-3 grid-margin-2 ecm-photo-list ecm-photo-list-<?php echo $risk->id ?>">
<?php
$entity =($conf->entity > 1) ? '/' . $conf->entity : '';
$files = dol_dir_list(DOL_DATA_ROOT .$entity. '/ecm/digiriskdolibarr/medias/', "files", 0, '', '_mini', 'position_name', 'asc', 1);
$files = dol_dir_list(DOL_DATA_ROOT .$entity. '/ecm/digiriskdolibarr/medias/', "files", 0, '', '_mini', 'date', SORT_DESC, 2);
$relativepath = 'digiriskdolibarr/medias';
$modulepart = 'ecm';

Expand All @@ -120,7 +120,7 @@
</div>
<!-- Modal-Footer -->
<div class="modal-footer">
<div class="save-photo wpeo-button button-blue">
<div class="save-photo wpeo-button button-blue button-disable">
<span><?php echo $langs->trans('Add'); ?></span>
</div>
</div>
Expand Down

0 comments on commit 5177f6d

Please sign in to comment.