From 10d067c6f7b37565520128cd0b4a455fc24a5898 Mon Sep 17 00:00:00 2001 From: Sudha Bisht Date: Mon, 13 Jul 2015 15:03:49 +0530 Subject: [PATCH] Fix for test failure --- CRM/Admin/Form/Mapping.php | 1 + CRM/Core/BAO/Mapping.php | 1 - xml/schema/Core/Mapping.xml | 2 ++ xml/schema/Core/MappingField.xml | 5 +++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/Mapping.php b/CRM/Admin/Form/Mapping.php index 50284a8295..0a56664812 100644 --- a/CRM/Admin/Form/Mapping.php +++ b/CRM/Admin/Form/Mapping.php @@ -95,6 +95,7 @@ class CRM_Admin_Form_Mapping extends CRM_Admin_Form { if ($this->_action == CRM_Core_Action::DELETE) { if ($this->_id) { CRM_Core_BAO_Mapping::del($this->_id); + CRM_Core_Session::setStatus(ts('Selected mapping has been deleted successfully.'), ts('Deleted'), 'success'); } } else { diff --git a/CRM/Core/BAO/Mapping.php b/CRM/Core/BAO/Mapping.php index 533c14c5ba..004b769c2b 100644 --- a/CRM/Core/BAO/Mapping.php +++ b/CRM/Core/BAO/Mapping.php @@ -82,7 +82,6 @@ class CRM_Core_BAO_Mapping extends CRM_Core_DAO_Mapping { $mapping->id = $id; if ($mapping->find(TRUE)) { $result = $mapping->delete(); - CRM_Core_Session::setStatus(ts('Selected mapping has been deleted successfully.'), ts('Deleted'), 'success'); return $result; } return FALSE; diff --git a/xml/schema/Core/Mapping.xml b/xml/schema/Core/Mapping.xml index 692f6b4534..f488d598fe 100644 --- a/xml/schema/Core/Mapping.xml +++ b/xml/schema/Core/Mapping.xml @@ -9,6 +9,7 @@ id int unsigned + Mapping ID true Mapping ID 1.2 @@ -45,6 +46,7 @@ mapping_type_id int unsigned + Mapping Type Mapping Type 2.1 diff --git a/xml/schema/Core/MappingField.xml b/xml/schema/Core/MappingField.xml index e7c8606fe4..5019953edb 100644 --- a/xml/schema/Core/MappingField.xml +++ b/xml/schema/Core/MappingField.xml @@ -9,6 +9,7 @@ id int unsigned + Mapping Field ID true Mapping Field ID 1.2 @@ -21,6 +22,7 @@ mapping_id int unsigned + Mapping ID true Mapping to which this field belongs 1.2 @@ -58,6 +60,7 @@ location_type_id int unsigned + Location type ID Location type of this mapping, if required 1.2 @@ -78,12 +81,14 @@ phone_type_id int unsigned + Phone type ID Which type of phone does this number belongs. 2.2 im_provider_id int unsigned + IM provider ID Which type of IM Provider does this name belong. 3.0 -- 2.25.1