X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FPrice%2FForm%2FDeleteSet.php;h=d3c330a02ab155eae4cde214ec41ba255bbcd123;hb=276ee0a0d34630e77fab855111697bc46b20222b;hp=4ec420c6fdf0d13f1484005a08e51daedfb5d115;hpb=397d0aec7771968e6ad649229f9a72c9c0e9b12c;p=civicrm-core.git diff --git a/CRM/Price/Form/DeleteSet.php b/CRM/Price/Form/DeleteSet.php index 4ec420c6fd..d3c330a02a 100644 --- a/CRM/Price/Form/DeleteSet.php +++ b/CRM/Price/Form/DeleteSet.php @@ -56,8 +56,9 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form { * Set up variables to build the form * * @return void - * @acess protected - */ function preProcess() { + * @access protected + */ + function preProcess() { $this->_sid = $this->get('sid'); $this->_title = CRM_Core_DAO::getFieldValue('CRM_Price_DAO_PriceSet', @@ -94,13 +95,13 @@ class CRM_Price_Form_DeleteSet extends CRM_Core_Form { 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'); } } }