Commit 04726129 by semenov

Начало разработки

parent 777a6549
......@@ -132,12 +132,18 @@ class ShopPersonType extends Core
try
{
$model = $formModel->createValidateModel();
if (!\Yii::$app->user->isGuest)
{
$model->setAttributes(\Yii::$app->cms->getAuthUser()->toArray(), true);
}
return \Yii::$app->getModule('shop')->renderFile('cart-form.php', [
'shopPersonType' => $this,
'module' => $moduleForm,
'modelForm' => $formModel,
'fields' => $formModel->fields(),
'model' => $formModel->createValidateModel()
'model' => $model
]);
} catch (\Exception $e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment