Fix customer backend forms , fix site\index
backend create\update customer forms must display the same as the frontend forms site\index action should be friendly and related to this app
This commit is contained in:
@@ -71,7 +71,6 @@ class CustomerCreate extends \common\models\Customer
|
||||
[['email'], 'required', 'when' => function($model) {
|
||||
return !isset( $model->email ) || empty($model->phone) ;
|
||||
} ,
|
||||
// 'enableClientValidation' => false,
|
||||
'whenClient' => "function (attribute, value) {
|
||||
return false;
|
||||
}",
|
||||
@@ -92,7 +91,6 @@ class CustomerCreate extends \common\models\Customer
|
||||
[['phone'], 'required', 'when' => function($model) {
|
||||
return !isset( $model->email ) || empty( $model->email ) ;
|
||||
} ,
|
||||
// 'enableClientValidation' => false,
|
||||
'whenClient' => "function (attribute, value) {
|
||||
return false;
|
||||
}",
|
||||
|
||||
Reference in New Issue
Block a user