r65753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65752‎ | r65753 | r65754 >
Date:18:10, 1 May 2010
Author:kipcool
Status:deferred
Tags:
Comment:
Corrected bug preventing to add an option with no language specified.
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Controller.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/Controller.php
@@ -545,6 +545,7 @@
546546 $attributeId = $idPath->getKeyStack()->peek( 0 )->classAttributeId;
547547 $optionMeaningId = $record->optionAttributeOption;
548548 $languageId = $record->language;
 549+ if ( $languageId == NULL ) $languageId = 0 ;
549550
550551 if ( $optionMeaningId )
551552 addOptionAttributeOption( $attributeId, $optionMeaningId, $languageId );

Status & tagging log