Index: trunk/extensions/SemanticWatchlist/includes/SWL_ChangeSet.php |
— | — | @@ -69,12 +69,13 @@ |
70 | 70 | |
71 | 71 | foreach ( $changes as $change ) { |
72 | 72 | $property = SMWDIProperty::doUnserialize( $change->change_property, '__pro' ); |
| 73 | + $diType = SMWDataValueFactory::getDataItemId( $property->findPropertyTypeID() ); |
73 | 74 | |
74 | 75 | $changeSet->addChange( |
75 | 76 | $property, |
76 | 77 | new SMWPropertyChange( // TODO: directly create the DI, no need to get it via a DV... |
77 | | - is_null( $change->change_old_value ) ? null : SMWDataValueFactory::newTypeIdValue( $property->findPropertyTypeID(), $change->change_old_value )->getDataItem(), |
78 | | - is_null( $change->change_new_value ) ? null : SMWDataValueFactory::newTypeIdValue( $property->findPropertyTypeID(), $change->change_new_value )->getDataItem() |
| 78 | + is_null( $change->change_old_value ) ? null : SMWDataItem::unserializeDataItem( $diType, $change->change_old_value ), |
| 79 | + is_null( $change->change_new_value ) ? null : SMWDataItem::unserializeDataItem( $diType, $change->change_new_value ) |
79 | 80 | ) |
80 | 81 | ); |
81 | 82 | } |