mirror of
https://github.com/silverstripe/silverstripe-behat-extension
synced 2024-10-22 17:05:32 +02:00
Merge pull request #93 from IgorNadj/patch-2
FIX logic error where a variable is used for two purposes
This commit is contained in:
commit
4a9db2be90
@ -351,9 +351,9 @@ class SilverStripeContext extends MinkContext implements SilverStripeAwareContex
|
||||
$fields = $this->getSession()->getPage()->findAll('named', array(
|
||||
'field', $this->getSession()->getSelectorsHandler()->xpathLiteral($field)
|
||||
));
|
||||
if($fields) foreach($fields as $field) {
|
||||
if($field->isVisible()) {
|
||||
$field->setValue($value);
|
||||
if($fields) foreach($fields as $f) {
|
||||
if($f->isVisible()) {
|
||||
$f->setValue($value);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user