Skip to content

Commit

Permalink
Fix for dropdown / radio types in isgreaterorlessthan validation
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Jul 9, 2018
1 parent 35316a9 commit b50cfc6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public function validate($data, $repeatCounter)

$otherElementModel = $this->getOtherElement();
$compare = $compareValue === '' ? $otherElementModel->getValue($formData, $repeatCounter) : $compareValue;
$compare = is_array($compare) ? array_pop($compare) : $compare;

if ($this->allowEmpty() && ($data === '' || $compare === ''))
{
Expand Down

0 comments on commit b50cfc6

Please sign in to comment.