Small fixes concerning the sorting list and the column headers/arrows. Now both are synchronized.

This commit is contained in:
Emmanuel Danan 2020-05-19 12:09:56 +02:00
parent 477609886a
commit f314464575
1 changed files with 5 additions and 5 deletions

View File

@ -11651,7 +11651,7 @@ class Interpretation extends Fields
if ($item['sort']) if ($item['sort'])
{ {
$title = "<?php echo JHtml::_('grid.sort', '" $title = "<?php echo JHtml::_('grid.sort', '"
. $item['lang'] . "', '" . $item['code'] . $item['lang'] . "', 'a." . $item['code']
. "', \$this->listDirn, \$this->listOrder); ?>"; . "', \$this->listDirn, \$this->listOrder); ?>";
} }
$head .= PHP_EOL . $this->_t(1) . '<th class="' . $class $head .= PHP_EOL . $this->_t(1) . '<th class="' . $class
@ -11670,7 +11670,7 @@ class Interpretation extends Fields
. '<th width="10" class="nowrap center" >'; . '<th width="10" class="nowrap center" >';
$head .= PHP_EOL . $this->_t(3) $head .= PHP_EOL . $this->_t(3)
. "<?php echo JHtml::_('grid.sort', '" . $statusLangName . "<?php echo JHtml::_('grid.sort', '" . $statusLangName
. "', 'published', \$this->listDirn, \$this->listOrder); ?>"; . "', 'a.published', \$this->listDirn, \$this->listOrder); ?>";
$head .= PHP_EOL . $this->_t(2) . "</th>"; $head .= PHP_EOL . $this->_t(2) . "</th>";
$head .= PHP_EOL . $this->_t(1) . "<?php else: ?>"; $head .= PHP_EOL . $this->_t(1) . "<?php else: ?>";
$head .= PHP_EOL . $this->_t(2) $head .= PHP_EOL . $this->_t(2)
@ -11686,7 +11686,7 @@ class Interpretation extends Fields
. '<th width="5" class="nowrap center hidden-phone" >'; . '<th width="5" class="nowrap center hidden-phone" >';
$head .= PHP_EOL . $this->_t(3) $head .= PHP_EOL . $this->_t(3)
. "<?php echo JHtml::_('grid.sort', '" . $idLangName . "<?php echo JHtml::_('grid.sort', '" . $idLangName
. "', 'id', \$this->listDirn, \$this->listOrder); ?>"; . "', 'a.id', \$this->listDirn, \$this->listOrder); ?>";
$head .= PHP_EOL . $this->_t(1) . "</th>"; $head .= PHP_EOL . $this->_t(1) . "</th>";
} }
$head .= PHP_EOL . "</tr>"; $head .= PHP_EOL . "</tr>";
@ -19553,10 +19553,10 @@ class Interpretation extends Fields
public function setSortFields(&$view) public function setSortFields(&$view)
{ {
// keep track of all fields already added // keep track of all fields already added
$donelist = array('sorting', 'published'); $donelist = array('ordering', 'published');
// set the default first // set the default first
$fields = "return array("; $fields = "return array(";
$fields .= PHP_EOL . $this->_t(3) . "'a.sorting' => JText:" $fields .= PHP_EOL . $this->_t(3) . "'ordering' => JText:"
. ":_('JGRID_HEADING_ORDERING')"; . ":_('JGRID_HEADING_ORDERING')";
$fields .= "," . PHP_EOL . $this->_t(3) . "'a.published' => JText:" $fields .= "," . PHP_EOL . $this->_t(3) . "'a.published' => JText:"
. ":_('JSTATUS')"; . ":_('JSTATUS')";