aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/evaluation/profiles.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/evaluation/profiles.php b/app/controllers/evaluation/profiles.php
index a596bf0..c394677 100644
--- a/app/controllers/evaluation/profiles.php
+++ b/app/controllers/evaluation/profiles.php
@@ -88,6 +88,11 @@ class Evaluation_ProfilesController extends AuthenticatedController
'value' => $is_fill ? $profile->stopdate : time(), //TODO sem
'mindate' => 'startdate'
],
+ 'info' => [
+ 'label' => _('Information'),
+ 'type' => 'info',
+ 'value' => _('Antworten können nicht revidiert werden, wenn sie anonym sind.')
+ ],
'anonymous' => [
'label' => _('Anonyme Teilnahme'),
'type' => 'checkbox',
@@ -130,6 +135,10 @@ class Evaluation_ProfilesController extends AuthenticatedController
$profile->optional_templates = implode(',', $optional_array);
$profile->store();
}
+ if ($profile->anonymous && $profile->editanswers) {
+ $profile->editanswers = false;
+ $profile->store();
+ }
})
->autoStore();