r107100 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107099‎ | r107100 | r107101 >
Date:19:49, 22 December 2011
Author:kipcool
Status:deferred
Tags:
Comment:
corrected bug showing deleted expressions
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/OmegaWikiRecordSets.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/OmegaWikiRecordSets.php
@@ -450,6 +450,15 @@
451451 " WHERE spelling=BINARY " . $dbr->addQuotes( $spelling ) .
452452 " AND {$dc}_expression.remove_transaction_id IS NULL " ;
453453
 454+ // needed because expression.remove_transaction_id is not updated automatically
 455+ $sql .= " AND EXISTS (" .
 456+ "SELECT * " .
 457+ " FROM {$dc}_syntrans " .
 458+ " WHERE {$dc}_syntrans.expression_id={$dc}_expression.expression_id" .
 459+ " AND {$dc}_syntrans.remove_transaction_id IS NULL " .
 460+ ")";
 461+
 462+
454463 if ( $viewInformation->expressionLanguageId != 0 ) {
455464 // display the expression in that language
456465 $sql .= " AND language_id=" . $viewInformation->expressionLanguageId ;

Status & tagging log