Commit ed4d2695 authored by Janur J.'s avatar Janur J.
Browse files

Fixes #28

parent 45d962f2
......@@ -26,6 +26,7 @@ class iaBackendController extends iaAbstractControllerModuleBackend
protected $_gridColumns = ['title', 'title_alias', 'num_all_listings', 'locked', 'level', 'status'];
protected $_gridFilters = ['title' => self::LIKE, 'status' => self::EQUAL];
protected $_gridSorting = [];
protected $_gridQueryMainTableAlias = 'c';
protected $_tooltipsEnabled = true;
......@@ -39,6 +40,7 @@ class iaBackendController extends iaAbstractControllerModuleBackend
public function init()
{
$this->_gridColumns['parent_id'] = iaCateg::COL_PARENT_ID;
$this->_gridSorting['parent_title'] = ['title_' . $this->_iaCore->language['iso'], 'p'];
}
public function _gridQuery($columns, $where, $order, $start, $limit)
......
......@@ -26,6 +26,7 @@ class iaBackendController extends iaAbstractControllerModuleBackend
protected $_gridColumns = ['title', 'title_alias', 'url', 'date_added', 'date_modified', 'reported_as_broken', 'reported_as_broken_comments', 'status'];
protected $_gridFilters = ['title' => self::LIKE, 'status' => self::EQUAL];
protected $_gridSorting = ['member' => ['fullname', 'm']];
protected $_gridQueryMainTableAlias = 'l';
protected $_tooltipsEnabled = true;
......@@ -40,6 +41,7 @@ class iaBackendController extends iaAbstractControllerModuleBackend
public function init()
{
$this->_iaCateg = $this->_iaCore->factoryModule('categ', $this->getModuleName(), iaCore::ADMIN);
$this->_gridSorting['category_title'] = ['title_' . $this->_iaCore->language['iso'], 'c'];
}
protected function _modifyGridParams(&$conditions, &$values, array $params)
......
Supports Markdown
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