mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Merge branch 'MDL-45284_master' of git://github.com/dmonllao/moodle
This commit is contained in:
commit
0e7408683f
@ -54,10 +54,15 @@ class behat_field_manager {
|
||||
try {
|
||||
// The DOM node.
|
||||
$fieldnode = $context->find_field($label);
|
||||
} catch (ElementNotFoundException $e) {
|
||||
} catch (ElementNotFoundException $fieldexception) {
|
||||
|
||||
// Looking for labels that points to filemanagers.
|
||||
$fieldnode = $context->find_filemanager($label);
|
||||
try {
|
||||
$fieldnode = $context->find_filemanager($label);
|
||||
} catch (ElementNotFoundException $filemanagerexception) {
|
||||
// We want the generic 'field' exception.
|
||||
throw $fieldexception;
|
||||
}
|
||||
}
|
||||
|
||||
// The behat field manager.
|
||||
|
Loading…
x
Reference in New Issue
Block a user