Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php |
— | — | @@ -88,7 +88,11 @@ |
89 | 89 | * set later on. |
90 | 90 | */ |
91 | 91 | static public function newPropertyObjectValue(SMWPropertyValue $property, $value=false, $caption=false) { |
92 | | - return SMWDataValueFactory::newTypeObjectValue($property->getTypesValue(), $value, $caption, $property); |
| 92 | + if ($property->isInverse()) { |
| 93 | + return SMWDataValueFactory::newTypeIdValue('_wpg', $value, $caption, $property); |
| 94 | + } else { |
| 95 | + return SMWDataValueFactory::newTypeObjectValue($property->getTypesValue(), $value, $caption, $property); |
| 96 | + } |
93 | 97 | } |
94 | 98 | |
95 | 99 | /** |