From e9d6a28e66a6788340b1343eff528e6f2beb4f05 Mon Sep 17 00:00:00 2001 From: Eric <1468823+rycks@users.noreply.github.com> Date: Mon, 24 Jul 2023 19:22:54 +0200 Subject: [PATCH] 16.0 urgent fix societe class (#25443) * Fix : set_as_client can't use prospect/customer value if disabled (#25380) * fix missing { on societe.class.php --------- Co-authored-by: Maxime Kohlhaas --- htdocs/societe/class/societe.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index c574b96cb29..6a4d97dc4c6 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2177,7 +2177,7 @@ class Societe extends CommonObject // phpcs:enable if ($this->id) { $newclient = 1; - if ($this->client == 2 || $this->client == 3) { + if (($this->client == 2 || $this->client == 3) && empty($conf->global->SOCIETE_DISABLE_PROSPECTSCUSTOMERS)) { $newclient = 3; //If prospect, we keep prospect tag } $sql = "UPDATE ".MAIN_DB_PREFIX."societe";