r25241 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r25240‎ | r25241 | r25242 >
Date:16:34, 28 August 2007
Author:proes
Status:old
Tags:
Comment:
Small fix
Modified paths:
  • /trunk/extensions/Wikidata/OmegaWiki/Editor.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php
@@ -1292,12 +1292,15 @@
12931293
12941294 public function add(IdStack $idPath) {
12951295 if ($this->isAddField) {
1296 -
 1296+ $syntransId = $idPath->getKeyStack()->peek(0)->syntransId;
12971297 $objectId = $this->objectIdFetcher->fetch($idPath->getKeyStack());
 1298+
 1299+// echo "SyntransId: $syntransId ObjectId: $objectId\n";
 1300+
12981301 $parameters = array(
12991302 'attributesLevel' => $this->attributesLevelName,
13001303 'attributesObjectId' => $objectId,
1301 - 'onUpdate' => 'updateSelectOptions(\'' . $this->addId($idPath->getId()) . '-option\',' . $objectId
 1304+ 'onUpdate' => 'updateSelectOptions(\'' . $this->addId($idPath->getId()) . '-option\',' . $syntransId
13021305 );
13031306 return getSuggest($this->addId($idPath->getId()), $this->suggestType(), $parameters);
13041307 }

Status & tagging log