From a675041874fe4a27fb34639cc8aeb885a59b46d0 Mon Sep 17 00:00:00 2001 From: Guillaume Est Une Palourde Date: Wed, 22 Jul 2020 11:49:51 -0400 Subject: [PATCH] Set the disabled flag so its not permanently pending when disabling domains --- bureau/class/m_dom.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bureau/class/m_dom.php b/bureau/class/m_dom.php index 36672995..378ca4c7 100644 --- a/bureau/class/m_dom.php +++ b/bureau/class/m_dom.php @@ -1986,6 +1986,9 @@ class m_dom { // is it a delete (DISABLED or DELETE) if ($subdom["web_action"]=="DELETE" || strtoupper(substr($subdom["enable"],0,7))=="DISABLE") { $ret = $hooks->invoke("hook_updatedomains_web_del",array($subdom["id"])); + if (strtoupper(substr($subdom["enable"],0,7))=="DISABLE") { + $db->query("UPDATE sub_domaines SET enable=\"DISABLED\" WHERE id=?;",array($id)); + } } else { $hooks->invoke("hook_updatedomains_web_before",array($subdom["id"])); // give a chance to get SSL cert before ;) $ret = $hooks->invoke("hook_updatedomains_web_add",array($subdom["id"]));