fix module update error when uploading zip without db changes

This commit is contained in:
Shreesh Arora
2023-04-03 18:37:29 +05:30
parent 2f3f616b95
commit f3f7c86cd2

View File

@@ -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.');