From 59337b32dd878794062895abf4a7558b6aaa0e32 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Sat, 30 May 2015 20:16:35 -0500
Subject: [PATCH] forms: Fix fail getting value of password field

---
 include/class.forms.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.forms.php b/include/class.forms.php
index 646a98035..e17844469 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -1794,7 +1794,7 @@ class PasswordWidget extends TextboxWidget {
         parent::parseValue();
         // Show empty box unless failed POST
         if ($_SERVER['REQUEST_METHOD'] != 'POST'
-                || $this->field->getForm()->isValid())
+                || !$this->field->getForm()->isValid())
             $this->value = '';
     }
 }
-- 
GitLab