From e991002080c10bc5172a4a1fd18ca634ae81c1b3 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 30 Apr 2023 17:52:54 +0200 Subject: [PATCH] Rerun of setup item Attachment. admin/attqachments.php. --- admin/attachments.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/attachments.php b/admin/attachments.php index c000990a..801d9628 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -198,7 +198,7 @@ function viewing_controls() function trans_view($trans) { - if ($type==ST_SUPPLIER || $type==ST_CUSTOMER || $type==ST_ITEM) + if ($trans['type_no']==ST_SUPPLIER || $trans['type_no']==ST_CUSTOMER || $trans['type_no']==ST_ITEM) return $trans['id']; return get_trans_view_str($trans["type_no"], $trans["trans_no"]); } -- 2.30.2