Commit 12000f91 authored by catch's avatar catch
Browse files

Issue #3380107 by acbramley: optionExists throws exception with incorrect type...

Issue #3380107 by acbramley: optionExists throws exception with incorrect type if option doesn't exist

(cherry picked from commit 26354a12)
parent 79ca3783
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -223,7 +223,7 @@ public function optionExists($select, $option, TraversableElement $container = N
    $option_field = $select_field->find('named_exact', ['option', $option]);

    if ($option_field === NULL) {
      throw new ElementNotFoundException($this->session->getDriver(), 'select', 'id|name|label|value', $option);
      throw new ElementNotFoundException($this->session->getDriver(), 'option', 'id|name|label|value', $option);
    }

    return $option_field;