Skip to content
Snippets Groups Projects
Commit 3260a036 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #5491 prendre en compte catégorie et clause where pour afficher les actions

parent 9f0ab5bd
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ $b = new basket(); ...@@ -7,7 +7,7 @@ $b = new basket();
$_SESSION['category_id'] = $_REQUEST['category_id']; $_SESSION['category_id'] = $_REQUEST['category_id'];
$actions = $b->get_actions_from_current_basket( $actions = $b->get_actions_from_current_basket(
$_REQUEST['resId'], $_REQUEST['collId'], 'PAGE_USE', false $_REQUEST['resId'], $_REQUEST['collId'], 'PAGE_USE', true
); );
if (count($actions) > 0) { if (count($actions) > 0) {
//$frmStr .= '<b>' . _ACTIONS . ' : </b>'; //$frmStr .= '<b>' . _ACTIONS . ' : </b>';
......
...@@ -679,7 +679,6 @@ abstract class basket_Abstract extends Database ...@@ -679,7 +679,6 @@ abstract class basket_Abstract extends Database
strtoupper($mode) == 'PAGE_USE' strtoupper($mode) == 'PAGE_USE'
&& $_SESSION['current_basket']['actions'][$i]['PAGE_USE'] == 'Y' && $_SESSION['current_basket']['actions'][$i]['PAGE_USE'] == 'Y'
&& $testWhere && strtoupper($resId) != 'NONE' && $testWhere && strtoupper($resId) != 'NONE'
&& ($_SESSION['current_basket']['actions'][$i]['id'] <> 'IndexingBasket')
) { ) {
$where = ' where res_id = ' . $resId; $where = ' where res_id = ' . $resId;
if (!empty($_SESSION['current_basket']['actions'][$i]['WHERE'])) { if (!empty($_SESSION['current_basket']['actions'][$i]['WHERE'])) {
...@@ -689,7 +688,7 @@ abstract class basket_Abstract extends Database ...@@ -689,7 +688,7 @@ abstract class basket_Abstract extends Database
if ($stmt->rowCount() > 0) { if ($stmt->rowCount() > 0) {
$arr[] = ['VALUE' => $_SESSION['current_basket']['actions'][$i]['ID'], 'LABEL' => $_SESSION['current_basket']['actions'][$i]['LABEL']]; $arr[] = ['VALUE' => $_SESSION['current_basket']['actions'][$i]['ID'], 'LABEL' => $_SESSION['current_basket']['actions'][$i]['LABEL']];
} }
} else if (strtoupper($mode) == 'PAGE_USE' && $_SESSION['current_basket']['actions'][$i]['PAGE_USE'] == 'Y' && !$testWhere) { } else if (strtoupper($mode) == 'PAGE_USE' && $_SESSION['current_basket']['actions'][$i]['PAGE_USE'] == 'Y') {
$arr[] = ['VALUE' => $_SESSION['current_basket']['actions'][$i]['ID'], 'LABEL' => $_SESSION['current_basket']['actions'][$i]['LABEL']]; $arr[] = ['VALUE' => $_SESSION['current_basket']['actions'][$i]['ID'], 'LABEL' => $_SESSION['current_basket']['actions'][$i]['LABEL']];
} else if (strtoupper($mode) == 'MASS_USE' && $_SESSION['current_basket']['actions'][$i]['MASS_USE'] == 'Y') { } else if (strtoupper($mode) == 'MASS_USE' && $_SESSION['current_basket']['actions'][$i]['MASS_USE'] == 'Y') {
// If "MASS_USE" adding the actions in the array // If "MASS_USE" adding the actions in the array
......
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