Bug 5571 and 5572. Unable to void/edit transactions in php 8. Due to an error in...
authorJoe <joe.hunt.consulting@gmail.com>
Thu, 23 Jun 2022 07:02:15 +0000 (09:02 +0200)
committerJoe <joe.hunt.consulting@gmail.com>
Thu, 23 Jun 2022 07:03:00 +0000 (09:03 +0200)
includes/db/audit_trail_db.inc

index c142abdb9fbad020fb1ccaa1e5dce447d15552ce..79061e18be97a78c6564ab01f140b4637180702f 100644 (file)
@@ -125,7 +125,7 @@ function get_journal_number($type, $trans_no) {
        if (db_num_rows($res))
        {
                $myrow =db_fetch($res);
-               return $myrow['gl_seq'] ? $myrow['gl_seq'] : _('None');
+               return $myrow['gl_seq'] ? $myrow['gl_seq'] : 0;
        }
        return "-";
 }