From 596647c5a912f9f3e258be2521d1bceec9d2da02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dani=C3=ABl?= <9696905+DanielvV@users.noreply.github.com> Date: Fri, 29 Sep 2017 09:38:52 +0200 Subject: [PATCH] CRM-21214 - Fix address sharing - small change --- CRM/Core/BAO/Address.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Core/BAO/Address.php b/CRM/Core/BAO/Address.php index 7ba998e403..1d06932896 100644 --- a/CRM/Core/BAO/Address.php +++ b/CRM/Core/BAO/Address.php @@ -1012,7 +1012,7 @@ SELECT is_primary, // prevent an endless chain between two shared addresses (prevent chaining 3) CRM-21214 if (CRM_Utils_Array::value('id', $params) == $params['master_id']) { - $params['master_id'] = ''; + $params['master_id'] = NULL; CRM_Core_Session::setStatus(ts("You can't connect an address to itself"), '', 'warning'); } } -- 2.25.1