Skip to content

Commit 23bd5c2

Browse files
committed
[smarcet]
* survey test group - fixed logic
1 parent 81234db commit 23bd5c2

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • survey_builder/code/infrastructure/active_records/instances

survey_builder/code/infrastructure/active_records/instances/Survey.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,9 @@ class Survey extends DataObject implements ISurvey
6565
protected function onBeforeWrite()
6666
{
6767
parent::onBeforeWrite();
68+
// only force IsTest if belongs to Group SurveyTestersGroupSlug
6869
if ($this->CreatedBy()->inGroup(Survey::SurveyTestersGroupSlug)) {
6970
$this->IsTest = true;
70-
} else {
71-
$this->IsTest = false;
7271
}
7372
}
7473

0 commit comments

Comments
 (0)