Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
6b769d79
Commit
6b769d79
authored
Feb 26, 2016
by
Олег Гиммельшпах
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.task-on.com:ktask/task-on.com
parents
f3a0cb33
dbfbd1d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
common/modules/triggers/models/TriggerTrigger.php
common/modules/triggers/models/TriggerTrigger.php
+8
-2
common/modules/users/models/User.php
common/modules/users/models/User.php
+1
-1
No files found.
common/modules/triggers/models/TriggerTrigger.php
View file @
6b769d79
...
@@ -224,9 +224,15 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
...
@@ -224,9 +224,15 @@ class TriggerTrigger extends \common\components\ActiveRecordModel
return
'Email not found'
;
return
'Email not found'
;
}
}
$user
=
User
::
find
One
([
'email'
=>
$email
]
);
$user
=
User
::
find
()
->
where
([
'email'
=>
$email
])
->
one
(
);
$templateData
[
'user_fio'
]
=
(
!
is_null
(
$user
))
?
$user
->
fio
:
''
;
if
(
array_key_exists
(
'user_fio'
,
$params
))
$user_fio
=
$params
[
'user_fio'
];
elseif
(
!
is_null
(
$user
))
{
$user_fio
=
$user
->
fio
;
}
$templateData
[
'user_fio'
]
=
(
isset
(
$user_fio
))
?
$user_fio
:
''
;
/** @var \DateTime $time_now */
/** @var \DateTime $time_now */
$time_now
=
new
\DateTime
();
$time_now
=
new
\DateTime
();
...
...
common/modules/users/models/User.php
View file @
6b769d79
...
@@ -519,7 +519,7 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
...
@@ -519,7 +519,7 @@ class User extends \common\components\ActiveRecordModel implements IdentityInter
return
false
;
return
false
;
if
(
$this
->
scenario
===
self
::
SCENARIO_REGISTRATION
)
{
if
(
$this
->
scenario
===
self
::
SCENARIO_REGISTRATION
)
{
if
(
!
$this
->
afterRegistration
([
'email'
=>
$this
->
email
]))
if
(
!
$this
->
afterRegistration
([
'email'
=>
$this
->
email
,
'user_fio'
=>
$this
->
fio
]))
return
false
;
return
false
;
}
}
return
true
;
return
true
;
...
...
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