r49767 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49766‎ | r49767 | r49768 >
Date:09:30, 23 April 2009
Author:werdna
Status:deferred
Tags:
Comment:
Allow partial imports with importData()
Modified paths:
  • /branches/preferences-work/phase3/includes/HTMLForm.php (modified) (history)

Diff [purge]

Index: branches/preferences-work/phase3/includes/HTMLForm.php
@@ -319,6 +319,11 @@
320320 $value = $field->filter( $value, $this->mFlatFields );
321321 }
322322
 323+ foreach( $this->mFlatFields as $fieldname => $field ) {
 324+ if ( !isset($fieldData[$fieldname]) )
 325+ $fieldData[$fieldname] = $field->getDefault();
 326+ }
 327+
323328 $this->mFieldData = $fieldData;
324329 }
325330

Status & tagging log