X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPrice%2FForm%2FDeleteSet.php;h=d3c330a02ab155eae4cde214ec41ba255bbcd123;hb=276ee0a0d34630e77fab855111697bc46b20222b;hp=829861bfe241d9dfdad4c812d7803430a986ffa9;hpb=da7a33feb6f28d09a8b2de93cb702b43ed484851;p=civicrm-core.git diff --git a/CRM/Price/Form/DeleteSet.php b/CRM/Price/Form/DeleteSet.php index 829861bfe2..d3c330a02a 100644 --- a/CRM/Price/Form/DeleteSet.php +++ b/CRM/Price/Form/DeleteSet.php @@ -1,7 +1,7 @@ _sid = $this->get('sid'); $this->_title = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', @@ -66,10 +67,9 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form { } /** - * Function to actually build the form + * Build the form object * * @return void - * @access public */ public function buildQuickForm() { $this->assign('title', $this->_title); @@ -91,19 +91,17 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form { * Process the form when submitted * * @return void - * @access public */ public function postProcess() { if (CRM_Price_BAO_PriceSet::deleteSet($this->_sid)) { CRM_Core_Session::setStatus(ts('The Price Set \'%1\' has been deleted.', - array(1 => $this->_title), ts('Deleted'), 'success' - )); + array(1 => $this->_title), ts('Deleted'), 'success' + )); } else { CRM_Core_Session::setStatus(ts('The Price Set \'%1\' has not been deleted! You must delete all price fields in this set prior to deleting the set.', - array(1 => $this->_title) - ), 'Unable to Delete', 'error'); + array(1 => $this->_title) + ), 'Unable to Delete', 'error'); } } } -