Skip to content
Snippets Groups Projects
Commit 2deeec56 authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #8001 condition for basket only

parent 4a707d2e
No related branches found
No related tags found
No related merge requests found
...@@ -239,25 +239,28 @@ if (isset($_REQUEST['res_id_master'])) { ...@@ -239,25 +239,28 @@ if (isset($_REQUEST['res_id_master'])) {
<?php <?php
} }
$action = \Action\models\ActionModel::getById(['id' => $_SESSION['current_basket']['default_action'], 'select' => ['action_page']]); if(!empty($_SESSION['current_basket']['default_action'])){
if (!empty($action) && $action['action_page'] == 'visa_mail' && $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 ?>
functions::xecho($_SESSION['collection_id_choice']); ?>&tableName=<?php <a href="signature_main_panel.php?id=<?php functions::xecho($s_id); ?>&collId=<?php
functions::xecho($_SESSION['res_table']); ?>&res_id_attach=<?php functions::xecho($_SESSION['collection_id_choice']); ?>&tableName=<?php
functions::xecho($att_id); ?>"> functions::xecho($_SESSION['res_table']); ?>&res_id_attach=<?php
<span class="bubble" style="cursor: pointer;margin-right: 5px;"> functions::xecho($att_id); ?>">
<i class="fa fa-hand-point-up fa-2x mCdarkGrey" aria-hidden="true"></i> <span class="bubble" style="cursor: pointer;margin-right: 5px;">
</span> <i class="fa fa-hand-point-up fa-2x mCdarkGrey" aria-hidden="true"></i>
</a> </span>
</a>
<span class="bubble" style="cursor: pointer;margin-right: 5px;" onclick="switchFrame('<?php functions::xecho($_SESSION['config']['businessappurl'].'index.php?page=doc_thumb_frame&body_loaded&module=thumbnails'); ?>',<?php functions::xecho($s_id); ?>,<?php functions::xecho($pdf_id); ?>);"> <span class="bubble" style="cursor: pointer;margin-right: 5px;" onclick="switchFrame('<?php functions::xecho($_SESSION['config']['businessappurl'].'index.php?page=doc_thumb_frame&body_loaded&module=thumbnails'); ?>',<?php functions::xecho($s_id); ?>,<?php functions::xecho($pdf_id); ?>);">
<i class="fa fa-retweet fa-2x mCdarkGrey"></i> <i class="fa fa-retweet fa-2x mCdarkGrey"></i>
</span> </span>
<input type="hidden" id="type_doc_show" value="attach" /> <input type="hidden" id="type_doc_show" value="attach" />
<?php <?php
}
} }
?> ?>
<br/> <br/>
<br/> <br/>
......
...@@ -63,19 +63,23 @@ if (isset($whereRequest) && !empty($whereRequest)) { ...@@ -63,19 +63,23 @@ 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(!empty($_REQUEST['baskets'])){
if ($i < $nombreDeLignesAffiche) { $action = \Action\models\ActionModel::getById(['id' => $_SESSION['current_basket']['default_action'], 'select' => ['action_page']]);
if (!empty($action) && $action['action_page'] == 'visa_mail' && $view != 'res_view_attachments') { if ($i < $nombreDeLignesAffiche) {
$line = '<li id=res_'.$i.' style="display:block;"><a href="view_attachments.php?id='; 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=';
} else {
$line = '<li id=res_'.$i.' style="display:block;"><a href="details.php?id=';
}
} else { } else {
$line = '<li id=res_'.$i.' style="display:block;"><a href="details.php?id='; 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=';
} else {
$line = '<li id=res_'.$i.' style="display:none;"><a href="details.php?id=';
}
} }
} else { } else {
if (!empty($action) && $action['action_page'] == 'visa_mail' && $view != 'res_view_attachments') { $line = '<li id=res_'.$i.' style="display:block;"><a href="details.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=';
}
} }
} }
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