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(
|
$fields = $this->getSession()->getPage()->findAll('named', array(
|
||||||
'field', $this->getSession()->getSelectorsHandler()->xpathLiteral($field)
|
'field', $this->getSession()->getSelectorsHandler()->xpathLiteral($field)
|
||||||
));
|
));
|
||||||
if($fields) foreach($fields as $field) {
|
if($fields) foreach($fields as $f) {
|
||||||
if($field->isVisible()) {
|
if($f->isVisible()) {
|
||||||
$field->setValue($value);
|
$f->setValue($value);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user