MDL-36056 forms: Don't validate disabled fields
authorDamyon Wiese <damyon@moodle.com>
Tue, 5 Dec 2017 01:49:33 +0000 (09:49 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 6 Dec 2017 06:53:30 +0000 (19:53 +1300)
commit387f7aae0d8b41969e48e1b489f9813520be2830
tree08c1aac5448353035f7062a863fc4564b119c803
parent9e51dc406f2eb221765f7be2fd98b267ea49dd75
MDL-36056 forms: Don't validate disabled fields

When fields are disabled, the value comes through as null so we need to specifically check for it
before validation.
lib/form/passwordunmask.php