r110804 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110803‎ | r110804 | r110805 >
Date:23:26, 6 February 2012
Author:jeroendedauw
Status:deferred
Tags:educationprogram, nodeploy 
Comment:
add value to option list if not there already so it does not get removed on load when the input is still a regular dropdown rather then combobox
Modified paths:
  • /trunk/extensions/EducationProgram/includes/EPHTMLCombobox.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EducationProgram/includes/EPHTMLCombobox.php
@@ -20,6 +20,10 @@
2121 }
2222
2323 function getInputHTML( $value ) {
 24+ if ( !in_array( $value, $this->mParams['options'] ) ) {
 25+ $this->mParams['options'][$value] = $value;
 26+ }
 27+
2428 return parent::getInputHTML( $value );
2529 }
2630

Status & tagging log