Index: trunk/extensions/Wikidata/OmegaWiki/DefinedMeaning.php |
— | — | @@ -117,21 +117,6 @@ |
118 | 118 | $wgTitle; |
119 | 119 | |
120 | 120 | parent::save($referenceTransaction); |
121 | | - |
122 | | -/* $definedMeaningId = $this->getDefinedMeaningIdFromTitle($wgTitle->getText()); |
123 | | - getDefinedMeaningEditor($this->filterLanguageId, $this->possiblySynonymousRelationTypeId, false, false)->save( |
124 | | - $this->getIdStack($definedMeaningId), |
125 | | - getDefinedMeaningRecord( |
126 | | - $definedMeaningId, |
127 | | - $this->filterLanguageId, |
128 | | - $this->possiblySynonymousRelationTypeId, |
129 | | - $referenceTransaction |
130 | | - ) |
131 | | - );*/ |
132 | | - |
133 | | - global |
134 | | - $wgTitle; |
135 | | - |
136 | 121 | $definedMeaningId = $this->getDefinedMeaningIdFromTitle($wgTitle->getText()); |
137 | 122 | |
138 | 123 | $dmModel=new DefinedMeaningModel( |
— | — | @@ -141,6 +126,12 @@ |
142 | 127 | $referenceTransaction |
143 | 128 | ); |
144 | 129 | |
| 130 | + $definedMeaningId = $this->getDefinedMeaningIdFromTitle($wgTitle->getText()); |
| 131 | + getDefinedMeaningEditor($this->filterLanguageId, $this->possiblySynonymousRelationTypeId, false, false)->save( |
| 132 | + $this->getIdStack($definedMeaningId), |
| 133 | + $dmModel->getRecord() |
| 134 | + ); |
| 135 | + |
145 | 136 | } |
146 | 137 | |
147 | 138 | protected function getIdStack($definedMeaningId) { |
Index: trunk/extensions/Wikidata/OmegaWiki/Record.php |
— | — | @@ -128,6 +128,7 @@ |
129 | 129 | foreach ($structure->getAttributes() as $attribute) { |
130 | 130 | $type = $attribute->type; |
131 | 131 | $value = $record->getAttributeValue($attribute); |
| 132 | + |
132 | 133 | if ($type instanceof Structure) |
133 | 134 | $result->setAttributeValue($attribute, project($record, $type->getStructure())); |
134 | 135 | else |