@@ 215-230 (lines=16) @@ | ||
212 | ); |
|
213 | } |
|
214 | ||
215 | public function actionEditPhone($id, $returnUrl) |
|
216 | { |
|
217 | $warehousePhone = WarehousePhone::findOne($id); |
|
218 | ||
219 | if (Yii::$app->request->post('WarehousePhone')) { |
|
220 | $warehousePhone->loadDefaultValues(); |
|
221 | $warehousePhone->load(Yii::$app->request->post()); |
|
222 | if ($warehousePhone->save()) { |
|
223 | $this->redirect($returnUrl); |
|
224 | } |
|
225 | } |
|
226 | ||
227 | ||
228 | ||
229 | return $this->render('form_edit_phone', ['warehousePhone' => $warehousePhone]); |
|
230 | } |
|
231 | ||
232 | ||
233 | public function actionEditEmail($id, $returnUrl) |
|
@@ 233-246 (lines=14) @@ | ||
230 | } |
|
231 | ||
232 | ||
233 | public function actionEditEmail($id, $returnUrl) |
|
234 | { |
|
235 | $warehouseEmail = WarehouseEmail::findOne($id); |
|
236 | ||
237 | if (Yii::$app->request->post('WarehouseEmail')) { |
|
238 | $warehouseEmail->loadDefaultValues(); |
|
239 | $warehouseEmail->load(Yii::$app->request->post()); |
|
240 | if ($warehouseEmail->save()) { |
|
241 | $this->redirect($returnUrl); |
|
242 | } |
|
243 | } |
|
244 | ||
245 | return $this->render('form_edit_email', ['warehouseEmail' => $warehouseEmail]); |
|
246 | } |
|
247 | ||
248 | public function actionDeletePhone($id) |
|
249 | { |