From 6dad058d12c8b88d40b908238eae9fd88709f32b Mon Sep 17 00:00:00 2001 From: heama Date: Mon, 22 Jan 2024 14:55:49 +0530 Subject: [PATCH] imagee issue in invoice --- app/Controllers/Books.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Books.php b/app/Controllers/Books.php index 02eb3c3b..37e158fa 100755 --- a/app/Controllers/Books.php +++ b/app/Controllers/Books.php @@ -138,7 +138,7 @@ class Books extends BaseController if ($existing_image_id) { $BooksModel->db->table('book_images') ->where(['book_img_id' => $existing_image_id, 'book_id' => $book_id]) - ->update(['isactive' => 0, 'updated_by' => (int)$session_uid]); + ->delete(); $book_images_affectedRows = $BooksModel->db->affectedRows(); $this->logger->info("Books: Image has been updated successfully. Updated Book Image ID = " . $existing_image_id . " Aff " . $book_images_affectedRows);