[0000583] Unique Reference check fails when running manual Revaluation of Currency
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 28 Feb 2011 15:15:13 +0000 (16:15 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 28 Feb 2011 15:15:13 +0000 (16:15 +0100)
CHANGELOG.txt
includes/references.inc

index ac39beeaeda1fe741533d71cfec4aae0b636ab44..7bcae749662b1eba60c62c7cec3fcdbb5185194b 100644 (file)
@@ -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.
index 0c11ebee3defacaa1d96bcdfb61a25a862f08160..16781175b5922cc221d6894594becbb38b77a740 100644 (file)
@@ -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) {