*** empty log message ***
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 21 Sep 2008 09:12:44 +0000 (09:12 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 21 Sep 2008 09:12:44 +0000 (09:12 +0000)
dimensions/inquiry/search_dimensions.php

index 4dd105dcaf8ce2a182d7a157981f4d7cdbd194ba..14ce24ab1084732fd0f943929bc0084937fb91e6 100644 (file)
@@ -137,7 +137,7 @@ while ($myrow = db_fetch($result))
        $sql = "SELECT SUM(amount) FROM ".TB_PREF."gl_trans WHERE tran_date >= '" .
                date2sql($_POST['FromDate']) . "' AND
                tran_date <= '" . date2sql($_POST['ToDate']) . "' AND (dimension_id = " .
-               $myrow['id']." OR dimension2_id = " .$myrow['id']);
+               $myrow['id']." OR dimension2_id = " .$myrow['id'].")";
        $res = db_query($sql, "Transactions could not be calculated");
        $row = db_fetch_row($res);