Don't add label-elements for elements that doesn't have one
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Sun, 13 Mar 2016 23:11:42 +0000 (00:11 +0100)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Sun, 13 Mar 2016 23:15:36 +0000 (00:15 +0100)
commit3a9b6bff322c1e1c6a9bfcec2a1fa27b2335dd33
tree94837651555f50331d44b6d20ea9015beca5dd5d
parenta0eb7a4421ddf4ad41a7a3a95ba85357efa75353
Don't add label-elements for elements that doesn't have one

Fix the OOUI field element implementation to conditionally add
labels to the FieldLayout (only if the label isn't empty). Also
add setShowEmptyLabel( false ) to HTMLButtonField (labels usually
aren't set outside of the button, the button itself should have a label).

Bug: T129821
Change-Id: I0499bb82245273519e77c80e78bc431588875a85
includes/htmlform/HTMLButtonField.php
includes/htmlform/HTMLFormField.php