Skip to content
Snippets Groups Projects
Commit aa71f4ab authored by Angie Byron's avatar Angie Byron
Browse files

#947820 by boombatower: Fixed Form action URL is not obtained properly in SimpleTest

parent a066c69b
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1748,7 +1748,7 @@ protected function drupalPost($path, $edit, $submit, array $options = array(), a
$post = array();
$upload = array();
$submit_matches = $this->handleForm($post, $edit, $upload, $ajax ? NULL : $submit, $form);
$action = isset($form['action']) ? $this->getAbsoluteUrl($form['action']) : $this->getUrl();
$action = isset($form['action']) ? $this->getAbsoluteUrl((string) $form['action']) : $this->getUrl();
if ($ajax) {
$action = $this->getAbsoluteUrl(!empty($submit['path']) ? $submit['path'] : 'system/ajax');
// AJAX callbacks verify the triggering element if necessary, so while
......
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