trim()'ed the search term
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
<div class="clearfix">
|
<div class="clearfix">
|
||||||
<ul class="breadcrumb pull-left">
|
<ul class="breadcrumb pull-left">
|
||||||
<li><a href="{url path='/admin/home'}">{intl l="Home"}</a></li>
|
<li><a href="{url path='/admin/home'}">{intl l="Home"}</a></li>
|
||||||
<li><a href="#">{intl l="Search"}</a></li>
|
<li><a href="#">{intl l="Search for '%term'" term=trim($smarty.get.search_term)}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{loop name="customer_list" type="customer" current="false" visible="*" backend_context="1" search_term=$smarty.get.search_term search_in="ref,firstname,lastname,email"}
|
{loop name="customer_list" type="customer" current="false" visible="*" backend_context="1" search_term=trim($smarty.get.search_term) search_in="ref,firstname,lastname,email"}
|
||||||
{assign "lastOrderDate" ''}
|
{assign "lastOrderDate" ''}
|
||||||
{assign "lastOrderAmount" ''}
|
{assign "lastOrderAmount" ''}
|
||||||
{assign "lastOrderCurrency" ''}
|
{assign "lastOrderCurrency" ''}
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{loop type="order" name="order-search" backend_context=1 customer="*" search_term=$smarty.get.search_term search_in="ref,customer_ref,customer_firstname,customer_lastname,customer_email"}
|
{loop type="order" name="order-search" backend_context=1 customer="*" search_term=trim($smarty.get.search_term) search_in="ref,customer_ref,customer_firstname,customer_lastname,customer_email"}
|
||||||
{loop type="order_address" name="order-invoice-address" id=$INVOICE_ADDRESS}
|
{loop type="order_address" name="order-invoice-address" id=$INVOICE_ADDRESS}
|
||||||
{assign "orderInvoiceFirstName" $FIRSTNAME}
|
{assign "orderInvoiceFirstName" $FIRSTNAME}
|
||||||
{assign "orderInvoiceLastName" $LASTNAME}
|
{assign "orderInvoiceLastName" $LASTNAME}
|
||||||
@@ -187,7 +187,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{loop type="product" name="product-search" visible="*" search_mode="sentence" search_term=$smarty.get.search_term search_in="ref,title"}
|
{loop type="product" name="product-search" visible="*" search_mode="sentence" search_term=trim($smarty.get.search_term) search_in="ref,title"}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$ID}</td>
|
<td>{$ID}</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user