From 5c23e85a796189b2a22893ee36b10ed84396cdda Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Thu, 30 Mar 2023 07:47:35 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1705 Co-authored-by: matjazpotocnik --- wire/modules/Inputfield/InputfieldURL.module | 1 + 1 file changed, 1 insertion(+) diff --git a/wire/modules/Inputfield/InputfieldURL.module b/wire/modules/Inputfield/InputfieldURL.module index 52ee962b..496d7a7f 100644 --- a/wire/modules/Inputfield/InputfieldURL.module +++ b/wire/modules/Inputfield/InputfieldURL.module @@ -86,6 +86,7 @@ class InputfieldURL extends InputfieldText { if($value === $test || $value === "http://$test" || $value === "https://$test") $error = false; } if($error) { + $value = $this->val(); $this->error("$label - " . $this->_("Error found - please check that it is a valid URL")); // Error message when invalid URL found }