From 657c89d93493056d81aff7ecfe2d37a3a80162dd Mon Sep 17 00:00:00 2001 From: yashodha Date: Fri, 17 Nov 2017 14:27:05 +0530 Subject: [PATCH] CRM-21443 - Add support for auto-complete fields in the batch update forms --- CRM/Activity/Form/Task/Batch.php | 4 ++-- CRM/Contact/Form/Task/Batch.php | 4 ++-- CRM/Contribute/Form/Task/Batch.php | 4 ++-- CRM/Event/Form/Task/Batch.php | 4 ++-- CRM/Member/Form/Task/Batch.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CRM/Activity/Form/Task/Batch.php b/CRM/Activity/Form/Task/Batch.php index 72a72febc1..3b63f4a371 100644 --- a/CRM/Activity/Form/Task/Batch.php +++ b/CRM/Activity/Form/Task/Batch.php @@ -106,7 +106,7 @@ class CRM_Activity_Form_Task_Batch extends CRM_Activity_Form_Task { // remove file type field and then limit fields $suppressFields = FALSE; - $removehtmlTypes = array('File', 'Autocomplete-Select'); + $removehtmlTypes = array('File'); foreach ($this->_fields as $name => $field) { if (CRM_Core_BAO_CustomField::getKeyID($name) && in_array($this->_fields[$name]['html_type'], $removehtmlTypes) @@ -187,7 +187,7 @@ class CRM_Activity_Form_Task_Batch extends CRM_Activity_Form_Task { // $buttonName = $this->controller->getButtonName('submit'); if ($suppressFields) { - CRM_Core_Session::setStatus(ts("File or Autocomplete-Select type field(s) in the selected profile are not supported for Update multiple activities."), ts('Some Fields Excluded'), 'info'); + CRM_Core_Session::setStatus(ts("File type field(s) in the selected profile are not supported for Update multiple activities."), ts('Some Fields Excluded'), 'info'); } $this->addDefaultButtons(ts('Update Activities')); diff --git a/CRM/Contact/Form/Task/Batch.php b/CRM/Contact/Form/Task/Batch.php index ca607f04d6..b147077b91 100644 --- a/CRM/Contact/Form/Task/Batch.php +++ b/CRM/Contact/Form/Task/Batch.php @@ -88,7 +88,7 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task { // remove file type field and then limit fields $suppressFields = FALSE; - $removehtmlTypes = array('File', 'Autocomplete-Select'); + $removehtmlTypes = array('File'); foreach ($this->_fields as $name => $field) { if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name) && in_array($this->_fields[$name]['html_type'], $removehtmlTypes) @@ -147,7 +147,7 @@ class CRM_Contact_Form_Task_Batch extends CRM_Contact_Form_Task { $buttonName = $this->controller->getButtonName('submit'); if ($suppressFields && $buttonName != '_qf_BatchUpdateProfile_next') { - CRM_Core_Session::setStatus(ts("File or Autocomplete-Select type field(s) in the selected profile are not supported for Update multiple contacts."), ts('Some Fields Excluded'), 'info'); + CRM_Core_Session::setStatus(ts("File type field(s) in the selected profile are not supported for Update multiple contacts."), ts('Some Fields Excluded'), 'info'); } $this->addDefaultButtons(ts('Update Contacts')); diff --git a/CRM/Contribute/Form/Task/Batch.php b/CRM/Contribute/Form/Task/Batch.php index 3964d6cbdc..1e3444aec1 100644 --- a/CRM/Contribute/Form/Task/Batch.php +++ b/CRM/Contribute/Form/Task/Batch.php @@ -94,7 +94,7 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task { // remove file type field and then limit fields $suppressFields = FALSE; - $removehtmlTypes = array('File', 'Autocomplete-Select'); + $removehtmlTypes = array('File'); foreach ($this->_fields as $name => $field) { if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name) && in_array($this->_fields[$name]['html_type'], $removehtmlTypes) @@ -179,7 +179,7 @@ class CRM_Contribute_Form_Task_Batch extends CRM_Contribute_Form_Task { $buttonName = $this->controller->getButtonName('submit'); if ($suppressFields && $buttonName != '_qf_Batch_next') { - CRM_Core_Session::setStatus(ts("File or Autocomplete-Select type field(s) in the selected profile are not supported for Update multiple contributions."), ts('Unsupported Field Type'), 'error'); + CRM_Core_Session::setStatus(ts("File type field(s) in the selected profile are not supported for Update multiple contributions."), ts('Unsupported Field Type'), 'error'); } $this->addDefaultButtons(ts('Update Contributions')); diff --git a/CRM/Event/Form/Task/Batch.php b/CRM/Event/Form/Task/Batch.php index dfde705859..1e00bff620 100644 --- a/CRM/Event/Form/Task/Batch.php +++ b/CRM/Event/Form/Task/Batch.php @@ -111,7 +111,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { // remove file type field and then limit fields $suppressFields = FALSE; - $removehtmlTypes = array('File', 'Autocomplete-Select'); + $removehtmlTypes = array('File'); foreach ($this->_fields as $name => $field) { if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name) && in_array($this->_fields[$name]['html_type'], $removehtmlTypes) @@ -225,7 +225,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task { $buttonName = $this->controller->getButtonName('submit'); if ($suppressFields && $buttonName != '_qf_Batch_next') { - CRM_Core_Session::setStatus(ts("File or Autocomplete-Select type field(s) in the selected profile are not supported for Update multiple participants."), ts('Unsupported Field Type'), 'info'); + CRM_Core_Session::setStatus(ts("File type field(s) in the selected profile are not supported for Update multiple participants."), ts('Unsupported Field Type'), 'info'); } $this->addDefaultButtons(ts('Update Participant(s)')); diff --git a/CRM/Member/Form/Task/Batch.php b/CRM/Member/Form/Task/Batch.php index 32e513a47d..9f79594945 100644 --- a/CRM/Member/Form/Task/Batch.php +++ b/CRM/Member/Form/Task/Batch.php @@ -101,7 +101,7 @@ class CRM_Member_Form_Task_Batch extends CRM_Member_Form_Task { // remove file type field and then limit fields $suppressFields = FALSE; - $removehtmlTypes = array('File', 'Autocomplete-Select'); + $removehtmlTypes = array('File'); foreach ($this->_fields as $name => $field) { if ($cfID = CRM_Core_BAO_CustomField::getKeyID($name) && in_array($this->_fields[$name]['html_type'], $removehtmlTypes) @@ -175,7 +175,7 @@ class CRM_Member_Form_Task_Batch extends CRM_Member_Form_Task { $buttonName = $this->controller->getButtonName('submit'); if ($suppressFields && $buttonName != '_qf_Batch_next') { - CRM_Core_Session::setStatus(ts("File or Autocomplete-Select type field(s) in the selected profile are not supported for Update multiple memberships."), ts('Unsupported Field Type'), 'error'); + CRM_Core_Session::setStatus(ts("File type field(s) in the selected profile are not supported for Update multiple memberships."), ts('Unsupported Field Type'), 'error'); } $this->addDefaultButtons(ts('Update Memberships')); -- 2.25.1