We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81234db commit 23bd5c2Copy full SHA for 23bd5c2
1 file changed
survey_builder/code/infrastructure/active_records/instances/Survey.php
@@ -65,10 +65,9 @@ class Survey extends DataObject implements ISurvey
65
protected function onBeforeWrite()
66
{
67
parent::onBeforeWrite();
68
+ // only force IsTest if belongs to Group SurveyTestersGroupSlug
69
if ($this->CreatedBy()->inGroup(Survey::SurveyTestersGroupSlug)) {
70
$this->IsTest = true;
- } else {
71
- $this->IsTest = false;
72
}
73
74
0 commit comments