X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCustom%2FForm%2FMoveField.php;h=ce103511884e05d8cbc57d0ec75ad3810bec8586;hb=1e66775e6f88ac33d643ca2d68577ab01dd41dd5;hp=f3f24ad9436450d0e615b72362685b357d939fc9;hpb=39dfb3109e293c4d596a66e6590a1ed7650bd37e;p=civicrm-core.git diff --git a/CRM/Custom/Form/MoveField.php b/CRM/Custom/Form/MoveField.php index f3f24ad943..ce10351188 100644 --- a/CRM/Custom/Form/MoveField.php +++ b/CRM/Custom/Form/MoveField.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -95,8 +95,8 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form { ); CRM_Utils_System::setTitle(ts('Custom Field Move: %1', - array(1 => $this->_srcFieldLabel) - )); + array(1 => $this->_srcFieldLabel) + )); $session = CRM_Core_Session::singleton(); $session->pushUserContext(CRM_Utils_System::url('civicrm/admin/custom/group/field', "reset=1&action=browse&gid={$this->_srcGID}")); @@ -116,7 +116,8 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form { } $customGroup = array( - '' => ts('- select -')) + $customGroup; + '' => ts('- select -'), + ) + $customGroup; $this->add('select', 'dst_group_id', ts('Destination'), @@ -149,8 +150,8 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form { */ public static function formRule($fields, $files, $self) { $self->_dstGID = $fields['dst_group_id']; - $tmp = CRM_Core_BAO_CustomField::_moveFieldValidate($self->_srcFID, $self->_dstGID); - $errors = array(); + $tmp = CRM_Core_BAO_CustomField::_moveFieldValidate($self->_srcFID, $self->_dstGID); + $errors = array(); if ($tmp['newGroupID']) { $errors['dst_group_id'] = $tmp['newGroupID']; } @@ -172,9 +173,10 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form { $srcUrl = CRM_Utils_System::url('civicrm/admin/custom/group/field', "reset=1&action=browse&gid={$this->_dstGID}"); CRM_Core_Session::setStatus(ts("%1 has been moved to the custom set %2.", array( - 1 => $this->_srcFieldLabel, - 2 => $dstGroup, + 1 => $this->_srcFieldLabel, + 2 => $dstGroup, 3 => $srcUrl, - )), '', 'success'); + )), '', 'success'); } + }