Index: trunk/extensions/Wikidata/OmegaWiki/Editor.php |
— | — | @@ -1292,12 +1292,15 @@ |
1293 | 1293 | |
1294 | 1294 | public function add(IdStack $idPath) { |
1295 | 1295 | if ($this->isAddField) { |
1296 | | - |
| 1296 | + $syntransId = $idPath->getKeyStack()->peek(0)->syntransId; |
1297 | 1297 | $objectId = $this->objectIdFetcher->fetch($idPath->getKeyStack()); |
| 1298 | + |
| 1299 | +// echo "SyntransId: $syntransId ObjectId: $objectId\n"; |
| 1300 | + |
1298 | 1301 | $parameters = array( |
1299 | 1302 | 'attributesLevel' => $this->attributesLevelName, |
1300 | 1303 | 'attributesObjectId' => $objectId, |
1301 | | - 'onUpdate' => 'updateSelectOptions(\'' . $this->addId($idPath->getId()) . '-option\',' . $objectId |
| 1304 | + 'onUpdate' => 'updateSelectOptions(\'' . $this->addId($idPath->getId()) . '-option\',' . $syntransId |
1302 | 1305 | ); |
1303 | 1306 | return getSuggest($this->addId($idPath->getId()), $this->suggestType(), $parameters); |
1304 | 1307 | } |