From 0d1f80d48388b91489eda38e71815507a1157a66 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Thu, 8 Aug 2019 08:09:28 +0200 Subject: [PATCH] Bug 4980: The field characters size of "Memo" in voiding a transaction doesn't correspond to the field size in the database. Fixed by cutting the text to 60 characters in ausit_trail. --- includes/db/audit_trail_db.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/db/audit_trail_db.inc b/includes/db/audit_trail_db.inc index 2714448e..c142abdb 100644 --- a/includes/db/audit_trail_db.inc +++ b/includes/db/audit_trail_db.inc @@ -12,6 +12,7 @@ function add_audit_trail($trans_type, $trans_no, $trans_date, $descr='') { + $descr = substr($descr, 0, 60); begin_transaction(); $date = date2sql($trans_date); -- 2.30.2