From f3f7c86cd21760e8891ad4198696041394652ed2 Mon Sep 17 00:00:00 2001 From: Shreesh Arora Date: Mon, 3 Apr 2023 18:37:29 +0530 Subject: [PATCH] fix module update error when uploading zip without db changes --- controllers/admin/AdminModulesController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index 7e0b23ffb..0eae6b275 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -1836,7 +1836,9 @@ class AdminModulesControllerCore extends AdminController $this->errors[] = $this->l('Module not found!'); } } else { - $this->errors[] = $this->l('There was some error while updating the module'); + $response['success'] = true; + $response['msg'] = $this->l('Module files updated successfully'); + $response['data']['redirect'] = $this->context->link->getAdminLink('AdminModules').'&conf=29&anchor='.$module->name; } } else { $this->errors[] = $this->l('Module not installed, install module before updating.');