Commit 8c5df6e2f399b115d610190b2c42f35e3848be30

Authored by alex
1 parent c02327c3

Изменил regex паттерн на телефонах + добавил катю в скрытые получатели

backend/controllers/ExportController.php
@@ -37,8 +37,6 @@ class ExportController extends Controller{ @@ -37,8 +37,6 @@ class ExportController extends Controller{
37 37
38 public function actionIndex(){ 38 public function actionIndex(){
39 39
40 -// $model=new DynamicModel(['timeFrom','timeTo']);  
41 -// $model->addRule(['timeFrom','timeTo'],'string');  
42 40
43 $model=new DateModel(); 41 $model=new DateModel();
44 return $this->render('index',[ 42 return $this->render('index',[
common/models/Customer.php
@@ -203,7 +203,7 @@ @@ -203,7 +203,7 @@
203 'phone_other', 203 'phone_other',
204 ], 204 ],
205 'match', 205 'match',
206 - 'pattern' => '#^[\d\s]+$#', 206 + 'pattern' => '#^\+?[\d\s]+$#',
207 ], 207 ],
208 [ 208 [
209 [ 'acceptance' ], 209 [ 'acceptance' ],
frontend/controllers/SiteController.php
@@ -242,10 +242,13 @@ @@ -242,10 +242,13 @@
242 ->setTo( 242 ->setTo(
243 [ 243 [
244 // 'kennen.md@gmail.com', 244 // 'kennen.md@gmail.com',
245 - 'kazimirova.artweb@gmail.com', 245 +
246 'energyforum@euromediacompany.com', 246 'energyforum@euromediacompany.com',
247 ] 247 ]
248 ) 248 )
  249 + ->setBcc(
  250 + 'kazimirova.artweb@gmail.com'
  251 + )
249 ->setSubject($subject) 252 ->setSubject($subject)
250 ->attach(\Yii::getAlias('@' . trim($model->image, '/'))) 253 ->attach(\Yii::getAlias('@' . trim($model->image, '/')))
251 ->send(); 254 ->send();