PrestaShop/PrestaShop — pull request #1632 by ccauw (2014-04-06 14:49:24+00:00)
Title: [-] BO : fix addFiltersToBreadcrumbs

In initProcess(), $this->filter is set to true if filters are used. it's better to used "$this->filter" than to check "submitFilter".

This fixes the following problem:

In Back office, creating a link to the list of orders filtered by customer (on the customer page) using AdminOrdersController.

Code for this link :

-form method="post" action="{$link->getAdminLink('AdminOrders')|escape:'html':'UTF-8'}"-
-input type="hidden" name="orderFilter_id_customer" value="{$customer->id|intval}" /-
-input type="hidden" name="orderFilter_customer" value="{$customer->lastname|escape:'html':'UTF-8'} {$customer->firstname|escape:'html':'UTF-8'}" /-
-input type="submit" name="submitFilterorder" value="{l s='All customer orders'}" /-
-/form-

"submitFilter" can't be used, because javascript function stops the form submit.