Handle null data return in HTMLForm
authorGergő Tisza <gtisza@wikimedia.org>
Sat, 23 Apr 2016 16:35:15 +0000 (16:35 +0000)
committerGergő Tisza <tgr.huwiki@gmail.com>
Mon, 25 Apr 2016 23:27:22 +0000 (01:27 +0200)
commited12473b15b7c6025e31be755b025f60501781f6
tree8d7f3a377cd7fa48ba8ef0004a52fd72b2292653
parenteb25968ab6b09e9fa5187952f6d45ae2f77bf7a7
Handle null data return in HTMLForm

Fix a test in If4e0dfb : in the unlikely but valid case when
some form field object returns null from loadDataFromRequest,
handle it correctly and do not replace it with the default value.

Bug: T133163
Change-Id: Id8b48cfc6288d11a79a5838e72bb80b14137a7b0
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLFormField.php
includes/htmlform/HTMLFormFieldCloner.php