Fix for CRM-21180: Inline changes to custom fields aren't reflected in custom greetings.
authorAllen Shaw <allen@JoineryHQ.com>
Wed, 8 Nov 2017 09:46:50 +0000 (03:46 -0600)
committereileen <emcnaughton@wikimedia.org>
Mon, 4 Dec 2017 07:16:35 +0000 (20:16 +1300)
commit63b7d4427ad0e1967032693cf2a733f9b581cf1b
tree9308be3c508f3b8633417af0c6d12a6d176c0293
parenteeda3fcad232854de573c5775ee05f49c6f5d7a2
Fix for CRM-21180: Inline changes to custom fields aren't reflected in custom greetings.

Includes unit test.

Toward CRM-21180: Better static var handling.

Toward CRM-21180: removed static vars; removed unused method parameters.

CRM-21180 add unit test for custom field being set in address

CRM-21180 Inline changes to custom fields aren't reflected in custom greetings

This incorporates Allan's work to cause custom fields to be updated
when a custom value is updated. These have been reconciled with the changes to allow
greeting fields to be set to null per CRM-21474

m
CRM/Contact/BAO/Contact.php
CRM/Contact/BAO/Contact/Utils.php
CRM/Core/BAO/CustomQuery.php
CRM/Core/BAO/CustomValueTable.php
templates/CRM/Contact/Page/View/CustomDataFieldView.tpl
tests/phpunit/api/v3/CustomValueTest.php