Просмотр исходного кода

Ticket #4661 - Studio: Selected filter in grids is reset after form submission.

AntonLV 2 лет назад
Родитель
Сommit
14968ebb2f

+ 1 - 0
studio/template/scripts/BxBaseStudioFormsForms.php

@@ -20,6 +20,7 @@ class BxBaseStudioFormsForms extends BxDolStudioFormsForms
 
         $this->_aOptions['actions_single']['edit']['attr']['title'] = _t('_adm_form_btn_forms_edit');
 
+        $this->_sFilter = '';
         if(($sFilter = $this->_getFilterValue()))
             $this->_sFilter = $sFilter;
 

+ 1 - 0
studio/template/scripts/BxBaseStudioFormsPreLists.php

@@ -21,6 +21,7 @@ class BxBaseStudioFormsPreLists extends BxDolStudioFormsPreLists
         $this->_aOptions['actions_single']['edit']['attr']['title'] = _t('_adm_form_btn_pre_lists_edit');
         $this->_aOptions['actions_single']['delete']['attr']['title'] = _t('_adm_form_btn_pre_lists_delete');
 
+        $this->_sFilter = '';
         if(($sFilter = $this->_getFilterValue()))
             $this->_sFilter = $sFilter;
 

+ 1 - 0
studio/template/scripts/BxBaseStudioFormsSearchForms.php

@@ -21,6 +21,7 @@ class BxBaseStudioFormsSearchForms extends BxDolStudioFormsSearchForms
 
         $this->_aOptions['actions_single']['edit']['attr']['title'] = _t('_adm_form_btn_search_forms_edit');
 
+        $this->_sFilter = '';
         if(($sFilter = $this->_getFilterValue()))
             $this->_sFilter = $sFilter;
 

+ 1 - 0
studio/template/scripts/BxBaseStudioGridNavigation.php

@@ -16,6 +16,7 @@ class BxBaseStudioGridNavigation extends BxTemplStudioGrid
     {
         parent::__construct($aOptions, $oTemplate);
 
+        $this->_sFilter = '';
         if(($sFilter = $this->_getFilterValue()))
             $this->_sFilter = $sFilter;
     }