mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
- Bugfix: fixed method generateFilterMenu of FiltersLib to generate the correct link for menu entries
- Bugfix: system/Filters_model is loaded in every methods of FiltersLib and FilterWidget where it is used
This commit is contained in:
@@ -313,6 +313,8 @@ class FiltersLib
|
||||
|
||||
if ($datasetQuery != null)
|
||||
{
|
||||
$this->_ci->load->model('system/Filters_model', 'FiltersModel');
|
||||
|
||||
// Execute the given SQL statement suppressing error messages
|
||||
$dataset = @$this->_ci->FiltersModel->execReadOnlyQuery($datasetQuery);
|
||||
}
|
||||
@@ -715,7 +717,7 @@ class FiltersLib
|
||||
$filter->description[0], // description
|
||||
sprintf(
|
||||
'%s?%s=%s',
|
||||
site_url($this->_ci->router->directory.$this->_ci->router->class.'/'.$this->_ci->router->method),
|
||||
site_url($navigationPage),
|
||||
self::FILTER_ID,
|
||||
$filter->filter_id
|
||||
) // link
|
||||
@@ -816,6 +818,8 @@ class FiltersLib
|
||||
{
|
||||
$condition = ''; // starts building the condition
|
||||
|
||||
$this->_ci->load->model('system/Filters_model', 'FiltersModel');
|
||||
|
||||
// "operation" is a required property for the applied filter definition
|
||||
if (!isEmptyString($filterDefinition->operation))
|
||||
{
|
||||
|
||||
@@ -312,6 +312,8 @@ class FilterWidget extends Widget
|
||||
{
|
||||
$this->_formatDataset($dataset); // marks rows using markRow and format rowns using formatRow
|
||||
|
||||
$this->load->model('system/Filters_model', 'FiltersModel');
|
||||
|
||||
// Set the new dataset and its attributes in the session
|
||||
$this->filterslib->setElementSession(FiltersLib::SESSION_METADATA, $this->FiltersModel->getExecutedQueryMetaData());
|
||||
$this->filterslib->setElementSession(FiltersLib::SESSION_ROW_NUMBER, count($dataset->retval));
|
||||
@@ -350,6 +352,8 @@ class FilterWidget extends Widget
|
||||
{
|
||||
$this->_formatDataset($dataset); // marks rows using markRow and format rowns using formatRow
|
||||
|
||||
$this->load->model('system/Filters_model', 'FiltersModel');
|
||||
|
||||
// Stores an array that contains all the data useful for
|
||||
$this->filterslib->setSession(
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user