Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
skeeks
/
cms-module-shop
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Merge Requests
0
Pipelines
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
04726129
authored
Apr 07, 2015
by
semenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Начало разработки
parent
777a6549
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
models/ShopPersonType.php
+7
-1
No files found.
models/ShopPersonType.php
View file @
04726129
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment