Index: trunk/extensions/SemanticMediaWiki/includes/SMW_DataValueFactory.php |
— | — | @@ -189,7 +189,11 @@ |
190 | 190 | static public function getPropertyObjectTypeID(Title $property) { |
191 | 191 | $propertyname = $property->getText(); |
192 | 192 | if (array_key_exists($propertyname, SMWDataValueFactory::$m_typelabels)) { |
193 | | - return SMWDataValueFactory::$m_typelabels[$propertyname]->getXSDValue(); |
| 193 | + if (SMWDataValueFactory::$m_typelabels[$propertyname]->isUnary() ) { |
| 194 | + return SMWDataValueFactory::$m_typelabels[$propertyname]->getXSDValue(); |
| 195 | + } else { |
| 196 | + return '__nry'; |
| 197 | + } |
194 | 198 | } else { |
195 | 199 | return SMWDataValueFactory::newPropertyObjectValue($property)->getTypeID(); // this also triggers caching |
196 | 200 | } |