Page MenuHomePhabricator

SMW_1.6_record_index_fix.patch

Authored By
bzimport
Nov 21 2014, 11:57 PM
Size
728 B
Referenced Files
None
Subscribers
None

SMW_1.6_record_index_fix.patch

diff -w -E -r --unified SemanticMediaWiki_1.6/includes/SMW_DataValueFactory.php SemanticMediaWiki_kkmod/includes/SMW_DataValueFactory.php
--- SemanticMediaWiki_1.6/includes/SMW_DataValueFactory.php 2011-07-03 13:49:58.000000000 +0200
+++ SemanticMediaWiki_kkmod/includes/SMW_DataValueFactory.php 2011-08-17 10:37:31.000000000 +0200
@@ -118,6 +118,8 @@
static public function newDataItemValue( SMWDataItem $dataItem, $property, $caption = false ) {
if ( $property !== null ) {
$typeid = $property->findPropertyTypeID();
+ if ( $typeid === '_rec' )
+ $typeid = self::$mDefaultDataItemTypeIds[$dataItem->getDiType()];
} else {
$typeid = self::$mDefaultDataItemTypeIds[$dataItem->getDiType()];
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7843
Default Alt Text
SMW_1.6_record_index_fix.patch (728 B)

Event Timeline