Skip to content

Commit

Permalink
Method must return a validator
Browse files Browse the repository at this point in the history
  • Loading branch information
Martijn committed Jan 3, 2017
1 parent 2864a93 commit a8f4471
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions code/model/YearCalendarItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ public function getCMSValidator()

$this->extend('updateCMSValidatorFields', $requiredFields);

if (!empty($requiredFields)) {
return new RequiredFields($requiredFields);
}
return new RequiredFields($requiredFields);
}

/**
Expand Down

0 comments on commit a8f4471

Please sign in to comment.