lvhao hace 3 semanas
padre
commit
acabaeb9da
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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);