Index: joomla/components/com_vxc/models/orders.php =================================================================== diff -u -r2 -r3 --- joomla/components/com_vxc/models/orders.php (.../orders.php) (revision 2) +++ joomla/components/com_vxc/models/orders.php (.../orders.php) (revision 3) @@ -32,15 +32,6 @@ $this->filter_order_Dir = 'desc'; $this->searchcustomerreference = $mainframe->getUserStateFromRequest( "$option.$view.searchcustomerreference", 'searchcustomerreference', '', 'string' ); - if ( $this->searchcustomerreference[0] === '>' ) - { - $this->acc_search_fast = True; - $this->searchcustomerreference = substr($this->searchcustomerreference,1); - } - else - { - $this->acc_search_fast = False; - } $this->searchcustomerreference = JString::strtolower( $this->searchcustomerreference ); $this->searchkind = $mainframe->getUserStateFromRequest( "$option.$view.searchkind", 'searchkind', 'MYUSER', 'string' ); @@ -71,6 +62,19 @@ $this->searchcustomerid = $customerId; $this->searchfranchise = $mainframe->getUserStateFromRequest( "$option.$view.searchfranchise", 'searchfranchise', '', 'string' ); + + /* AC1: gestion de la recherche rapide si le client commence par '>' */ + if ( $this->searchcustomerreference[0] === '>' ) + { + $this->acc_search_fast = True; + $this->searchcustomerreference = substr($this->searchcustomerreference,1); + $this->searchfranchise = ""; + $this->searchkind = "all"; + } + else + { + $this->acc_search_fast = False; + } if (!$this->searchfranchise) { $userId = LegacyHelper::getUserId();