From 2df183e74d88a59bd83f80624869e989fd579c27 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Tue, 9 Jul 2013 23:36:02 +0530 Subject: [PATCH] CRM-12965, notice fixes and cleanup --- CRM/Badge/Form/Layout.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/CRM/Badge/Form/Layout.php b/CRM/Badge/Form/Layout.php index 3d663ec230..aa5005b2f2 100644 --- a/CRM/Badge/Form/Layout.php +++ b/CRM/Badge/Form/Layout.php @@ -69,7 +69,7 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form { $this->add('select', 'label_format_name', ts('Label Style'), array('' => ts('- select -')) + $labelStyle, TRUE); $this->add('text', 'description', ts('Description'), - CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'description')); + CRM_Core_DAO::getAttribute('CRM_Core_DAO_PrintLabel', 'title')); // get the tokens $contactTokens = CRM_Core_SelectValues::contactTokens(); @@ -119,11 +119,12 @@ class CRM_Badge_Form_Layout extends CRM_Admin_Form { if (isset($this->_id) && empty($this->_values)) { $this->_values = array(); $params = array('id' => $this->_id); - CRM_Badge_BAO_Layout::retrieve($params, $this->_values ); - } + CRM_Badge_BAO_Layout::retrieve($params, $this->_values); + - $defaults = array_merge($this->_values, - CRM_Badge_BAO_Layout::getDecodedData($this->_values['data'])); + $defaults = array_merge($this->_values, + CRM_Badge_BAO_Layout::getDecodedData($this->_values['data'])); + } if ($this->_action == CRM_Core_Action::DELETE && isset($defaults['title'])) { $this->assign('delName', $defaults['title']); -- 2.25.1