lvhao 5 days ago
parent
commit
3ac7bd4237
1 changed files with 4 additions and 1 deletions
  1. 4 1
      core/CoreApp/controllers/Whlabel.php

+ 4 - 1
core/CoreApp/controllers/Whlabel.php

@@ -492,7 +492,10 @@ class Whlabel extends Start_Controller
 				$where  .= " and purchase = '$purchase'";
 				$where  .= " and purchase = '$purchase'";
 			}
 			}
 			if (isset($state)) {
 			if (isset($state)) {
-				$where  .= " and state = '$state'";
+				if($state >-1){
+					$where  .= " and state = '$state'";
+				}
+				
 			}
 			}
 
 
 			if ($lacetype) {
 			if ($lacetype) {