From: Joe Hunt Date: Mon, 28 Feb 2011 15:15:13 +0000 (+0100) Subject: [0000583] Unique Reference check fails when running manual Revaluation of Currency X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f9ad60d4055a105d897aac0751f676d50fb4ffa5;p=textcart.git [0000583] Unique Reference check fails when running manual Revaluation of Currency --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ac39bee..7bcae74 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 0c11ebe..1678117 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) {