diff --git a/src/crm/crud/ZCRMRecord.php b/src/crm/crud/ZCRMRecord.php index 0c9d0b3e..ed393b89 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 +}