Skip to content
Snippets Groups Projects
Commit 3020deb4 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #266178 by boombatower: SimpleTest internal browser no longer handles element ids.

parent 201e1dd3
No related merge requests found
......@@ -621,13 +621,14 @@ protected function handleForm(&$post, &$edit, &$upload, $submit, $form) {
$submit_matches = FALSE;
foreach ($elements as $element) {
// SimpleXML objects need string casting all the time.
$name = (string)$element['name'];
$name = (string) $element['name'];
$id = (string) $element['id'];
// This can either be the type of <input> or the name of the tag itself
// for <select> or <textarea>.
$type = isset($element['type']) ? (string)$element['type'] : $element->getName();
$value = isset($element['value']) ? (string)$element['value'] : '';
$done = FALSE;
if (isset($edit[$name])) {
if (isset($edit[$name]) || isset($edit[$id])) {
switch ($type) {
case 'text':
case 'textarea':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment