Projekt

Allgemein

Profil

GX-Bug #53452 » FilterParameterFix1.patch

Till Tepelmann, 02.10.2017 16:17

Unterschiede anzeigen:

src/templates/Honeygrid/boxes/box_filter_form_content.html (revision )
79 79
		{/block}
80 80
	
81 81
		<input type="hidden" name="filter_url" value="{$content_data.FILTER_URL}" />
82
		{load_env_array source='get' name='ENV_GET_DATA' exclude=$EXCLUDE_GET_PARAMS}
82
		{load_env_array source='get' name='ENV_GET_DATA' exclude=$content_data.EXCLUDE_GET_PARAMS}
83 83
		{foreach name=hidden_params key=param_key item=param_value from=$ENV_GET_DATA}
84 84
			{if $param_key != 'feature_categories_id' && $param_key != 'filter_url' && $param_key != 'module' && $param_key != 'action' && $param_key != 'gm_boosted_product'}
85 85
				<input type="hidden" name="{$param_key}" value="{$param_value}" />
86 86
			{/if}
87 87
		{/foreach}
88 88
	
89
		{load_env_array source='post' name='ENV_GET_DATA_POST' exclude=$EXCLUDE_POST_PARAMS}
89
		{load_env_array source='post' name='ENV_GET_DATA_POST' exclude=$content_data.EXCLUDE_POST_PARAMS}
90 90
		{foreach name=hidden_params key=param_key item=param_value from=$ENV_GET_DATA_POST}
91 91
			{if $param_key != 'feature_categories_id' && $param_key != 'filter_url' && $param_key != 'module' && $param_key != 'action'}
92 92
				<input type="hidden" name="{$param_key}" value="{$param_value}" />
src/system/classes/filter/FilterBoxContentView.inc.php (revision )
156 156
			$t_coo_content_view = MainFactory::create_object('ContentView');
157 157
			$t_coo_content_view->set_content_template('module/filter_selection/' . $t_template);
158 158

  
159
			if(gm_get_conf('GM_SEO_BOOST_CATEGORIES') == '1')
160
			{
161
				$t_coo_content_view->set_content_data('EXCLUDE_GET_PARAMS', 'cPath,cat,gm_boosted_category,filter_fv_id,value_conjunction,filter_price_min,filter_price_max,do,value_conjunction,page_token');
162
				$t_coo_content_view->set_content_data('EXCLUDE_POST_PARAMS', 'cPath,cat,gm_boosted_category,filter_fv_id,price_start,price_end,feature_values,filter_categories_id,filter_price_min,filter_price_max,do,value_conjunction,page_token');
163
			}
164
			else
165
			{
166
				$t_coo_content_view->set_content_data('EXCLUDE_GET_PARAMS', 'filter_fv_id,value_conjunction,filter_price_min,filter_price_max,do,value_conjunction,page_token');
167
				$t_coo_content_view->set_content_data('EXCLUDE_POST_PARAMS', 'filter_fv_id,price_start,price_end,feature_values,filter_categories_id,filter_price_min,filter_price_max,do,value_conjunction,page_token');
168
			}
169

  
170

  
171 159
			$t_coo_content_view->set_content_data('FEATURE_NAME', $t_feature_name);
172 160
			$t_coo_content_view->set_content_data('FEATURE_VALUE_DATA', $t_feature_value_data_array);
173 161
			$t_coo_content_view->set_content_data('FEATURE_ID', $t_feature_id);
......
266 254

  
267 255
		$this->set_content_data('PRICE_FILTER_FROM_ACTIVE', gm_get_conf('PRICE_FILTER_FROM_ACTIVE'));
268 256
		$this->set_content_data('PRICE_FILTER_TO_ACTIVE', gm_get_conf('PRICE_FILTER_TO_ACTIVE'));
257

  
258
		if(gm_get_conf('GM_SEO_BOOST_CATEGORIES') == 'true')
259
		{
260
			$t_coo_content_view->set_content_data('EXCLUDE_GET_PARAMS', 'cat,gm_boosted_category,filter_fv_id,value_conjunction,filter_price_min,filter_price_max,do,value_conjunction,page_token');
261
			$t_coo_content_view->set_content_data('EXCLUDE_POST_PARAMS', 'cat,gm_boosted_category,filter_fv_id,price_start,price_end,feature_values,filter_categories_id,filter_price_min,filter_price_max,do,value_conjunction,page_token');
262
		}
263
		else
264
		{
265
			$t_coo_content_view->set_content_data('EXCLUDE_GET_PARAMS', 'filter_fv_id,value_conjunction,filter_price_min,filter_price_max,do,value_conjunction,page_token');
266
			$t_coo_content_view->set_content_data('EXCLUDE_POST_PARAMS', 'filter_fv_id,price_start,price_end,feature_values,filter_categories_id,filter_price_min,filter_price_max,do,value_conjunction,page_token');
267
		}
268

  
269 269
	}
270 270

  
271 271

  
    (1-1/1)