lvhao před 3 týdny
rodič
revize
acabaeb9da
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      core/CoreApp/controllers/User.php

+ 1 - 1
core/CoreApp/controllers/User.php

@@ -199,7 +199,7 @@ class User extends Start_Controller
 			$post['warehouse'] = $this->input->post('warehouse', true);
 			$post['warehousetext'] = $this->input->post('warehousetext', true);
 			$post['customer'] = $this->input->post('customer', true);
-			$post['staff'] = $this->input->post('staff', true);
+			$post['staff'] = empty($this->input->post('staff', true))?0:$this->input->post('staff', true);
 			$post['stafftext'] = $this->input->post('stafftext', true);
 			$post['power'] = $this->input->post('power', true);
 			$post['name'] = $this->input->post('name', true);