Skip to content
Snippets Groups Projects
Verified Commit f8f6a815 authored by Damien's avatar Damien
Browse files

FIX #7726 Signature on smartphone is available for any baskets with visa_mail action

parent c4a402bc
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,8 @@ else{ ...@@ -234,7 +234,8 @@ else{
</ul>--> </ul>-->
<?php <?php
} }
if ($_SESSION['current_basket']['id'] == "EsigBasket" && $infos_attach['attachment_type'] != 'signed_response'){ $action = \Action\models\ActionModel::getById(['id' => $_SESSION['current_basket']['default_action'], 'select' => ['action_page']]);
if (!empty($action) && $action['action_page'] == 'visa_mail' && $infos_attach['attachment_type'] != 'signed_response'){
?> ?>
<a href="signature_main_panel.php?id=<?php functions::xecho($s_id);?>&collId=<?php <a href="signature_main_panel.php?id=<?php functions::xecho($s_id);?>&collId=<?php
functions::xecho($_SESSION['collection_id_choice']); functions::xecho($_SESSION['collection_id_choice']);
......
...@@ -67,16 +67,19 @@ if (isset($whereRequest) && !empty($whereRequest)) { ...@@ -67,16 +67,19 @@ if (isset($whereRequest) && !empty($whereRequest)) {
if ($view == "view_folders") { if ($view == "view_folders") {
$line = '<li>'; $line = '<li>';
} else { } else {
$action = \Action\models\ActionModel::getById(['id' => $_SESSION['current_basket']['default_action'], 'select' => ['action_page']]);
if ($i < $nombreDeLignesAffiche) { if ($i < $nombreDeLignesAffiche) {
if ($_SESSION['current_basket']['id'] == "EsigBasket" && $view != "res_view_attachments"){ if (!empty($action) && $action['action_page'] == 'visa_mail' && $view != "res_view_attachments"){
$line = '<li id=res_' . $i . ' style="display:block;"><a href="view_attachments.php?id='; $line = '<li id=res_' . $i . ' style="display:block;"><a href="view_attachments.php?id=';
} else {
$line = '<li id=res_' . $i . ' style="display:block;"><a href="details.php?id=';
} }
else $line = '<li id=res_' . $i . ' style="display:block;"><a href="details.php?id=';
} else { } else {
if ($_SESSION['current_basket']['id'] == "EsigBasket" && $view != "res_view_attachments"){ if (!empty($action) && $action['action_page'] == 'visa_mail' && $view != "res_view_attachments"){
$line = '<li id=res_' . $i . ' style="display:block;"><a href="view_attachments.php?id='; $line = '<li id=res_' . $i . ' style="display:block;"><a href="view_attachments.php?id=';
} else {
$line = '<li id=res_' . $i . ' style="display:none;"><a href="details.php?id=';
} }
else $line = '<li id=res_' . $i . ' style="display:none;"><a href="details.php?id=';
} }
} }
for ($j = 0; $j < count($tab[$i]); $j++) { for ($j = 0; $j < count($tab[$i]); $j++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment