Add in Domain id handling into SMS provider BAO
authorSeamus Lee <seamuslee001@gmail.com>
Fri, 3 Feb 2017 05:37:13 +0000 (16:37 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 10 Apr 2017 21:11:33 +0000 (07:11 +1000)
commiteca6c81ca247b1baae98840c64f0dfc313ee2bfe
tree2dffc0f04cd82e5d7e70e3307c1531f6c5c7e63e
parent2a71567716d1bedf1dbde1ae82476f3fea5bc417
Add in Domain id handling into SMS provider BAO

Add in domain id filtering to delete function

CRM-19961 Treat NULL domain_id values as ok when retriving SMS providers

Ensure domain id only gets set if its not already set

Treat NULL domain_id as valid and also allow for any domain to delete providers that have domain_id which is NULL

Add in API default for domain_id for sms provider

Use value from database if provided even if null otherwise fall back to current domain as default but use the value submitted first

Fix null test on update
CRM/SMS/BAO/Provider.php
CRM/Upgrade/Incremental/php/FourSeven.php
api/v3/SmsProvider.php