diff --git a/include/Product.php b/include/Product.php index 13b9322..9a4798c 100644 --- a/include/Product.php +++ b/include/Product.php @@ -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();