Added the ability to search on product status
This commit is contained in:
parent
78ac0574b9
commit
dbdceadb5e
@ -120,7 +120,8 @@ class Product extends Entity {
|
||||
$fields = array('brand' => 'get_brand',
|
||||
'name' => 'get_name',
|
||||
'invoice' => 'get_invoice',
|
||||
'serial' => 'get_serial');
|
||||
'serial' => 'get_serial',
|
||||
'status' => 'get_status');
|
||||
|
||||
foreach($terms as $term) {
|
||||
$key = $term->get_key();
|
||||
@ -130,6 +131,7 @@ class Product extends Entity {
|
||||
case 'name':
|
||||
case 'invoice':
|
||||
case 'serial':
|
||||
case 'status':
|
||||
// If $key is a standard field, check against its value
|
||||
$getter = $fields[$key];
|
||||
$value = $this->$getter();
|
||||
|
Loading…
x
Reference in New Issue
Block a user