Skip to content

Commit

Permalink
Dev: add emailnotificationto and emailresponseto to afterFindSurvey
Browse files Browse the repository at this point in the history
Dev: move this to a disallowed attribute
  • Loading branch information
Shnoulle committed Aug 1, 2018
1 parent 8ea64e8 commit 108cf35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey.php
Expand Up @@ -504,7 +504,7 @@ public function afterFindSurvey()
$allowedAttributes = array('template', 'usecookie', 'allowprev',
'showxquestions', 'shownoanswer', 'showprogress', 'questionindex',
'usecaptcha', 'showgroupinfo', 'showqnumcode', 'navigationdelay',
'expires','stardate','admin','adminemail');
'expires','stardate','admin','adminemail','emailnotificationto','emailresponseto');
foreach ($allowedAttributes as $attribute) {
if (!is_null($event->get($attribute))) {
$this->{$attribute} = $event->get($attribute);
Expand Down

0 comments on commit 108cf35

Please sign in to comment.