From c791384c669710f19ebfb58c9ea4abdea056a26c Mon Sep 17 00:00:00 2001 From: Nguyen Ngoc Cuong Date: Wed, 29 Mar 2023 18:19:04 +0700 Subject: [PATCH] Fix deleteByPluginKey Can't uninstall other plugin when active privacy plugin --- bol/action_data_dao.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bol/action_data_dao.php b/bol/action_data_dao.php index ef3b3f7..b5b48f3 100644 --- a/bol/action_data_dao.php +++ b/bol/action_data_dao.php @@ -31,7 +31,7 @@ class PRIVACY_BOL_ActionDataDao extends OW_BaseDao { const ACTION = 'key'; const USER_ID = 'userId'; - const PLUGIN_KEY = 'plugin_key'; + const PLUGIN_KEY = 'pluginKey'; const VALUE = 'value'; /** @@ -163,10 +163,10 @@ public function deleteByPluginKey( $pluginKey ) } $example = new OW_Example(); - $example->andFieldEqual(self::USER_ID, $pluginKey); + $example->andFieldEqual(self::PLUGIN_KEY, $pluginKey); $this->deleteByExample($example); return $this->dbo->getAffectedRows(); } -} \ No newline at end of file +}