From 467d64a70ae6d3eb7ee1345e809fb02252f51efd Mon Sep 17 00:00:00 2001 From: Shivanand Mitakari Date: Mon, 12 Feb 2024 12:56:48 +0530 Subject: [PATCH 1/3] Update ZCRMRecord.php --- src/crm/crud/ZCRMRecord.php | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/crm/crud/ZCRMRecord.php b/src/crm/crud/ZCRMRecord.php index 0c9d0b3e..e3a046e0 100644 --- a/src/crm/crud/ZCRMRecord.php +++ b/src/crm/crud/ZCRMRecord.php @@ -267,7 +267,17 @@ public function setFieldValue($apiName, $value) { $this->fieldNameVsValue[$apiName] = $value; } - + + /** + * Unset field value + * + * @param String $apiName api name of the field. + */ + public function unsetFieldValue($apiName,) + { + unset($this->fieldNameVsValue[$apiName]); + } + /** * Method to get an array(key-value pair) containing field name as key and field data as value for the record * @@ -982,4 +992,4 @@ public function setLastActivityTime($lastActivityTime) { $this->lastActivityTime = $lastActivityTime; } -} \ No newline at end of file +} From c2dce28b83b7d5de150cf95cbd9145bb61685254 Mon Sep 17 00:00:00 2001 From: Shivanand Mitakari Date: Mon, 12 Feb 2024 13:02:37 +0530 Subject: [PATCH 2/3] Update ZCRMRecord.php From 90613b0f183725b7300036aeccb6ba5f7a772248 Mon Sep 17 00:00:00 2001 From: Shivanand Mitakari Date: Mon, 12 Feb 2024 13:09:16 +0530 Subject: [PATCH 3/3] Update ZCRMRecord.php --- src/crm/crud/ZCRMRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crm/crud/ZCRMRecord.php b/src/crm/crud/ZCRMRecord.php index e3a046e0..ed393b89 100644 --- a/src/crm/crud/ZCRMRecord.php +++ b/src/crm/crud/ZCRMRecord.php @@ -269,11 +269,11 @@ public function setFieldValue($apiName, $value) } /** - * Unset field value + * Unset field value. * * @param String $apiName api name of the field. */ - public function unsetFieldValue($apiName,) + public function unsetFieldValue($apiName) { unset($this->fieldNameVsValue[$apiName]); }