Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New feature: configuration AuditLog config page + new log survey sett…
…ings change event Dev: Added AuditLog config page + default values for each operation type Dev: Log any survey setting change Dev: Fix missing dispatch event for update & delete tokens & partipants.
- Loading branch information
1 parent
a819002
commit e8f6f76
Showing
3 changed files
with
194 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1233,6 +1233,12 @@ function index($sa = null) | |
$oSurvey->tokenlength = App()->request->getPost('tokenlength'); | ||
$oSurvey->adminemail = App()->request->getPost('adminemail'); | ||
$oSurvey->bounce_email = App()->request->getPost('bounce_email'); | ||
|
||
$event = new PluginEvent('newSurveySettings'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
danielgimeno
Author
Contributor
|
||
$event->set('newSurvey', $oSurvey); | ||
$event->set('survey', $iSurveyID); | ||
App()->getPluginManager()->dispatchEvent($event); | ||
|
||
if ($oSurvey->save()) | ||
{ | ||
Yii::app()->setFlashMessage(gT("Survey settings were successfully saved.")); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This part is totally broken : see 7c3efa8
You don't need newSurvey object : you already have survey id (survey) in event : then can call SurveyModel