Browse Source

Updated public

north 7 years ago
parent
commit
159b6d4abd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      www/protected/modules/j/controllers/JGEmpolyerController.php

+ 4 - 0
www/protected/modules/j/controllers/JGEmpolyerController.php

@@ -101,6 +101,7 @@ class JgEmpolyerController extends JBaseController
     {
         $id = Yii::app()->request->getParam('id','');
         $status = Yii::app()->request->getParam('status','');
+        $sex = Yii::app()->request->getParam('sex','');
         $name = Yii::app()->request->getParam('name','');
         $phone = Yii::app()->request->getParam('phone','');
         $cart_num = Yii::app()->request->getParam('cart_num','');
@@ -150,6 +151,9 @@ class JgEmpolyerController extends JBaseController
         if (!empty($name)) {
             $employe->name = $name;
         }
+        if (!empty($sex)) {
+            $employe->sex = (int)$sex;
+        }
         if (!empty($phone)) {
             $employe->phone = $phone;
         }