From 9010686ab0673f11ed6bfb22338718aac695b38b Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 28 Feb 2011 16:15:13 +0100 Subject: [PATCH] [0000583] Unique Reference check fails when running manual Revaluation of Currency --- CHANGELOG.txt | 3 +++ includes/references.inc | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ac39beea..7bcae749 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,9 @@ Legend: ! -> Note $ -> Affected files +28-Feb-2011 Joe Hunt +# [0000583] Unique Reference check fails when running manual Revaluation of Currency +$ /includes/references.inc 21-Feb-2011 Janusz Dobrowolski ! Hiden warning in open_basedir/save_mode on rate retrieval. diff --git a/includes/references.inc b/includes/references.inc index 0c11ebee..16781175 100644 --- a/includes/references.inc +++ b/includes/references.inc @@ -114,10 +114,10 @@ function is_new_reference($ref, $type) $type = db_escape($type); if ($db_ref == null) { // journal or bank trans store references in refs table - $db_ref = TB_PREF."refs"; + $db_name = TB_PREF."refs"; $db_type = 'type'; $db_trans = 'id'; - $rb_ref = 'reference'; + $db_ref = 'reference'; } if ($db_type != null) { -- 2.30.2