Improve handling of the required argument in HTMLForm field definitions
authorjeroendedauw <jeroendedauw@gmail.com>
Sat, 11 Aug 2012 22:23:46 +0000 (00:23 +0200)
committerjeroendedauw <jeroendedauw@gmail.com>
Sat, 11 Aug 2012 22:26:17 +0000 (00:26 +0200)
commit06db921d75e455d0391340dbba0ff9c0a9b60139
treef8313ec21312c0702957a646136cdfd60d7f32da
parentf734de5f7b7bac92dba0c47ba032b820e0b945a7
Improve handling of the required argument in HTMLForm field definitions

array( 'required' => false ) will now result in the field not being required rather then the unexpected opossite.

And this is now possible (without doing some extra if)

array( 'required' => getSomeBoolean() )

Change-Id: I1fc22b16ab1fa17111c48aa664aaf47de5f7075a
includes/HTMLForm.php