Skip to content

Commit

Permalink
Load search block if vv_searchable_attributes are present
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis Igoumenos committed Jun 23, 2022
1 parent 29fb688 commit d3deebc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 13 deletions.
3 changes: 0 additions & 3 deletions app/templates/ApiUsers/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ if($vv_cur_co->id == 1) {
];
}

// Turn off the search/filter box for this index view
//$disableFiltering = true;

$indexColumns = [
'username' => [
'type' => 'link',
Expand Down
3 changes: 0 additions & 3 deletions app/templates/Cous/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// Turn off the search/filter box for this index view
//$disableFiltering = true;

$indexColumns = [
'name' => [
'type' => 'link'
Expand Down
5 changes: 1 addition & 4 deletions app/templates/Standard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@
// Otherwise, we'll print out a "no records" message.
$recordsExist = false;

// By default Index filtering is on and we need to explicitly disable it
$disableFiltering = false;

// Our default link actions, in order of preference, unless the column config overrides it
$linkActions = ['edit', 'view'];

Expand Down Expand Up @@ -161,7 +158,7 @@ function _column_key($modelsName, $c, $tz=null) {
<?php endif; // $banners ?>

<!-- Search block -->
<?php if(!$disableFiltering): ?>
<?php if(isset($vv_searchable_attributes)): ?>
<?= $this->element('filter'); ?>
<?php endif; ?>

Expand Down
3 changes: 0 additions & 3 deletions app/templates/Types/columns.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@
* @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
*/

// Turn off the search/filter box for this index view
//$disableFiltering = true;

$indexColumns = [
'display_name' => [
'type' => 'link',
Expand Down

0 comments on commit d3deebc

Please sign in to comment.