Skip to content
Snippets Groups Projects
Commit a0206693 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Fix bulk/cart checkboxes in Combined search.

parent 421708ce
No related merge requests found
......@@ -64,8 +64,7 @@
$viewParams = [
'results' => $results,
'params' => $params,
'showCartControls' => $this->showCartControls,
'showBulkOptions' => $this->showBulkOptions
'showCheckboxes' => $this->showCartControls || $this->showBulkOptions
];
?>
<?=$this->render('search/list-' . $viewType . '.phtml', $viewParams)?>
......
......@@ -38,6 +38,8 @@
$this->showCartControls = $this->supportsCart && $this->cart()->isActive();
// Enable bulk options if appropriate:
$this->showBulkOptions = $this->supportsCart && $this->showBulkOptions;
// Enable bulk options if appropriate:
$this->showCheckboxes = $this->showCartControls || $this->showBulkOptions;
// Load Javascript dependencies into header:
$this->headScript()->appendFile("check_item_statuses.js");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment