Index: branches/unlabeled/unlabeled-1.62.2/core/kernel/db/db_tag_processor.php =================================================================== diff -u -r5770 -r5856 --- branches/unlabeled/unlabeled-1.62.2/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 5770) +++ branches/unlabeled/unlabeled-1.62.2/core/kernel/db/db_tag_processor.php (.../db_tag_processor.php) (revision 5856) @@ -1555,6 +1555,19 @@ $records = array_merge_recursive($records, $heading_records); } } + + /** + * Allows to determine if original value should be shown + * + * @param Array $params + * @return bool + */ + function DisplayOriginal($params) + { + // original id found & greather then zero + show original + $display_original = isset($params['display_original']) && $params['display_original']; + return $display_original && $this->Application->GetVar($this->Prefix.'.original_id'); + } }