Skip to content
Snippets Groups Projects
Commit 8fc17fb0 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #2120 from greezybacon/issue/pw-save-fail


forms: Fix fail getting value of password field

Reviewed-By: default avatarPeter Rotich <peter@rotich.com>
parents 56cc7098 59337b32
No related branches found
No related tags found
No related merge requests found
...@@ -1794,7 +1794,7 @@ class PasswordWidget extends TextboxWidget { ...@@ -1794,7 +1794,7 @@ class PasswordWidget extends TextboxWidget {
parent::parseValue(); parent::parseValue();
// Show empty box unless failed POST // Show empty box unless failed POST
if ($_SERVER['REQUEST_METHOD'] != 'POST' if ($_SERVER['REQUEST_METHOD'] != 'POST'
|| $this->field->getForm()->isValid()) || !$this->field->getForm()->isValid())
$this->value = ''; $this->value = '';
} }
} }
......
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