Added the category code to the new filters area. gh-378 Update the direction default the descending.

This commit is contained in:
2020-11-30 17:30:10 +02:00
parent f20039b390
commit 3324576c95
32 changed files with 57 additions and 33 deletions

View File

@ -15404,7 +15404,6 @@ class Interpretation extends Fields
$query .= PHP_EOL;
}
// setup values for the view ordering
// add dynamic ordering (Admin view)
if (isset($this->viewsDefaultOrdering[$nameListCode])
&& $this->viewsDefaultOrdering[$nameListCode]['add_admin_ordering']
@ -15464,7 +15463,7 @@ class Interpretation extends Fields
$query .= PHP_EOL . $this->_t(2)
. "\$orderCol = \$this->state->get('list.ordering', 'a.id');";
$query .= PHP_EOL . $this->_t(2)
. "\$orderDirn = \$this->state->get('list.direction', 'asc');";
. "\$orderDirn = \$this->state->get('list.direction', 'desc');";
$query .= PHP_EOL . $this->_t(2) . "if (\$orderCol != '')";
$query .= PHP_EOL . $this->_t(2) . "{";
$query .= PHP_EOL . $this->_t(3)