From b23a2a3bdf1d06323fd48b30f619a2083c4d97b2 Mon Sep 17 00:00:00 2001 From: Alok Patel Date: Sat, 16 Feb 2019 13:05:38 +1100 Subject: [PATCH] Add in Exception API to support the refactor of Dedupe Exception Page --- CRM/Dedupe/DAO/Exception.php | 4 ++- api/v3/Exception.php | 62 +++++++++++++++++++++++++++++++++ xml/schema/Dedupe/Exception.xml | 2 ++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 api/v3/Exception.php diff --git a/CRM/Dedupe/DAO/Exception.php b/CRM/Dedupe/DAO/Exception.php index 03dac72f30..3e824fa3e6 100644 --- a/CRM/Dedupe/DAO/Exception.php +++ b/CRM/Dedupe/DAO/Exception.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Dedupe/Exception.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:8be54351020230bbff872ebf033c811b) + * (GenCodeChecksum:1f39e9ee1f80da1b62c054f6ca4119c5) */ /** @@ -97,6 +97,7 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('First Dupe Contact ID'), 'description' => ts('FK to Contact ID'), + 'required' => TRUE, 'table_name' => 'civicrm_dedupe_exception', 'entity' => 'Exception', 'bao' => 'CRM_Dedupe_DAO_Exception', @@ -108,6 +109,7 @@ class CRM_Dedupe_DAO_Exception extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Second Dupe Contact ID'), 'description' => ts('FK to Contact ID'), + 'required' => TRUE, 'table_name' => 'civicrm_dedupe_exception', 'entity' => 'Exception', 'bao' => 'CRM_Dedupe_DAO_Exception', diff --git a/api/v3/Exception.php b/api/v3/Exception.php new file mode 100644 index 0000000000..9c50d4a35c --- /dev/null +++ b/api/v3/Exception.php @@ -0,0 +1,62 @@ +int unsigned FK to Contact ID 3.3 + TRUE contact_id1 @@ -37,6 +38,7 @@ int unsigned FK to Contact ID 3.3 + TRUE contact_id2 -- 2.25.1