VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Joe Bourque on August 21, 2012, 18:38:39 PM

Title: Bug with searching products by sku in Admin Panel
Post by: Joe Bourque on August 21, 2012, 18:38:39 PM
When searching for products by sku No products are returned

The fix is as follows:

In file administrator/components/com_virtuemart/models/product.php

Around Line 151 Replace This:
Code: [Select]

$valid_search_fields = array('product_name');

With This:
Code: [Select]

$valid_search_fields = array('product_name','product_sku');

Title: Re: Bug with searching products by sku in Admin Panel
Post by: Milbo on August 21, 2012, 18:45:17 PM
You do not say your version. This should be already fixed for 2.0.8e and we have now 2.0.9
Title: Re: Bug with searching products by sku in Admin Panel
Post by: Joe Bourque on August 21, 2012, 19:24:27 PM
Sorry Milbo I am using 2.0.8 didn't see 2.0.9 was out  :-\
Title: Re: Bug with searching products by sku in Admin Panel
Post by: Joe Bourque on August 21, 2012, 23:17:52 PM
I went back and looked an the version I'm running is 2.0.8e and the fix was not in that version.
Title: Re: Bug with searching products by sku in Admin Panel
Post by: Milbo on August 22, 2012, 14:04:10 PM
yeh it somehow dissappeared, some svn hickup.