if (!$ufGroupId) {
CRM_Core_Error::fatal('ufGroupId is missing');
}
- $this->_title = ts('Batch Update for Activities') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
+ $this->_title = ts('Update multiple activities') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
CRM_Utils_System::setTitle($this->_title);
$this->addDefaultButtons(ts('Save'));
// $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 Batch Update."), ts('Some Fields Excluded'), 'info');
+ 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');
}
$this->addDefaultButtons(ts('Update Activities'));
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('Batch Profile Update for Activities'));
+ CRM_Utils_System::setTitle(ts('Update multiple activities'));
$validate = FALSE;
//validations
if (count($this->_activityHolderIds) > $this->_maxActivities) {
- CRM_Core_Session::setStatus(ts("The maximum number of Activities you can select for Batch update is %1. You have selected %2. Please select fewer Activities from your search results and try again.", array(
+ CRM_Core_Session::setStatus(ts("The maximum number of activities you can select for Update multiple activities is %1. You have selected %2. Please select fewer Activities from your search results and try again.", array(
1 => $this->_maxActivities,
2 => count($this->_activityHolderIds),
)), ts('Maximum Exceeded'), 'error');
}
if (empty($profiles)) {
- CRM_Core_Session::setStatus(ts("You will need to create a Profile containing the %1 fields you want to edit before you can use Batch update activities via profile. Navigate to Administer > Customize Data and Screens > Profiles to configure a Profile. Consult the online Administrator documentation for more information.", array(1 => $types[0])), ts("No Profile Configured"), "alert");
+ CRM_Core_Session::setStatus(ts("You will need to create a Profile containing the %1 fields you want to edit before you can use Update multiple activities. Navigate to Administer > Customize Data and Screens > Profiles to configure a Profile. Consult the online Administrator documentation for more information.", array(1 => $types[0])), ts("No Profile Configured"), "alert");
CRM_Utils_System::redirect($this->_userContext);
}
elseif ($notEditable) {
'result' => FALSE,
),
4 => array(
- 'title' => ts('Batch update activities via profile'),
+ 'title' => ts('Update multiple activities'),
'class' => array(
'CRM_Activity_Form_Task_PickProfile',
'CRM_Activity_Form_Task_Batch',
if (!$ufGroupId) {
CRM_Core_Error::fatal('ufGroupId is missing');
}
- $this->_title = ts('Batch Update') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
+ $this->_title = ts('Update multiple contacts') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
CRM_Utils_System::setTitle($this->_title);
$this->addDefaultButtons(ts('Save'));
$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 Batch Update."), ts('Some Fields Excluded'), 'info');
+ 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');
}
$this->addDefaultButtons(ts('Update Contacts'));
$validate = FALSE;
//validations
if (count($this->_contactIds) > $this->_maxContacts) {
- CRM_Core_Session::setStatus(ts("The maximum number of contacts you can select for Batch update is %1. You have selected %2. Please select fewer contacts from your search results and try again.", array(
+ CRM_Core_Session::setStatus(ts("The maximum number of contacts you can select for Update multiple contacts is %1. You have selected %2. Please select fewer contacts from your search results and try again.", array(
1 => $this->_maxContacts,
2 => count($this->_contactIds),
)), ts('Maximum Exceeded'), 'error');
}
if (CRM_Contact_BAO_Contact_Utils::checkContactType($this->_contactIds)) {
- CRM_Core_Session::setStatus(ts("Batch update requires that all selected contacts be the same basic type (e.g. all Individuals OR all Organizations...). Please modify your selection and try again."), ts('Contact Type Mismatch'), 'error');
+ CRM_Core_Session::setStatus(ts("Update multiple contacts requires that all selected contacts be the same basic type (e.g. all Individuals OR all Organizations...). Please modify your selection and try again."), ts('Contact Type Mismatch'), 'error');
$validate = TRUE;
}
* Build the form object.
*/
public function buildQuickForm() {
- CRM_Utils_System::setTitle(ts('Batch Profile Update for Contact'));
+ CRM_Utils_System::setTitle(ts('Update multiple contacts'));
foreach ($this->_contactIds as $id) {
$this->_contactTypes = CRM_Contact_BAO_Contact::getContactTypes($id);
if (empty($profiles)) {
$types = implode(' ' . ts('or') . ' ', $this->_contactTypes);
- CRM_Core_Session::setStatus(ts("The contact type selected for Batch update does not have a corresponding profile. Please set up a profile for %1s and try again.", array(1 => $types)), ts('No Profile Available'), 'error');
+ CRM_Core_Session::setStatus(ts("The contact type selected for Update multiple contacts does not have a corresponding profile. Please set up a profile for %1s and try again.", array(1 => $types)), ts('No Profile Available'), 'error');
CRM_Utils_System::redirect($this->_userContext);
}
$ufGroupElement = $this->add('select', 'uf_group_id', ts('Select Profile'), array('' => ts('- select profile -')) + $profiles, TRUE, array('class' => 'crm-select2 huge'));
*/
public static function formRule($fields) {
if (CRM_Core_BAO_UFField::checkProfileType($fields['uf_group_id'])) {
- $errorMsg['uf_group_id'] = "You cannot select mix profile for batch update.";
+ $errorMsg['uf_group_id'] = "You cannot select a mixed profile for Update multiple contacts.";
}
if (!empty($errorMsg)) {
'result' => TRUE,
),
self::BATCH_UPDATE => array(
- 'title' => ts('Batch update contacts via profile'),
+ 'title' => ts('Update multiple contacts'),
'class' => array(
'CRM_Contact_Form_Task_PickProfile',
'CRM_Contact_Form_Task_Batch',
if (!$ufGroupId) {
CRM_Core_Error::fatal('ufGroupId is missing');
}
- $this->_title = ts('Batch Update for Contributions') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
+ $this->_title = ts('Update multiple contributions') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
CRM_Utils_System::setTitle($this->_title);
$this->addDefaultButtons(ts('Save'));
}
//fix to reduce size as we are using this field in grid
- if (is_array($field['attributes']) && $this->_fields[$name]['attributes']['size'] > 19) {
+ if (is_array($field['attributes']) && !empty($this->_fields[$name]['attributes']['size']) && $this->_fields[$name]['attributes']['size'] > 19) {
//shrink class to "form-text-medium"
$this->_fields[$name]['attributes']['size'] = 19;
}
$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 Batch Update."), ts('Unsupported Field Type'), 'error');
+ 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');
}
$this->addDefaultButtons(ts('Update Contributions'));
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('Batch Update Contributions Via Profile'));
+ CRM_Utils_System::setTitle(ts('Update multiple contributions'));
$validate = FALSE;
//validations
if (count($this->_contributionIds) > $this->_maxContributions) {
- CRM_Core_Session::setStatus(ts("The maximum number of contributions you can select for Batch update is %1. You have selected %2. Please select fewer contributions from your search results and try again.", array(
+ CRM_Core_Session::setStatus(ts("The maximum number of contributions you can select for Update multiple contributions is %1. You have selected %2. Please select fewer contributions from your search results and try again.", array(
1 => $this->_maxContributions,
2 => count($this->_contributionIds),
)), ts('Batch Update Error'), 'error');
$profiles = CRM_Core_BAO_UFGroup::getProfiles($types, TRUE);
if (empty($profiles)) {
- CRM_Core_Session::setStatus(ts("You will need to create a Profile containing the %1 fields you want to edit before you can use Batch update contributions via profile. Navigate to Administer CiviCRM > Customize Data and Screens > CiviCRM Profile to configure a Profile. Consult the online Administrator documentation for more information.", array(1 => $types[0])), ts('Profile Required'), 'error');
+ CRM_Core_Session::setStatus(ts("You will need to create a Profile containing the %1 fields you want to edit before you can use Update multiple contributions. Navigate to Administer CiviCRM > Customize Data and Screens > CiviCRM Profile to configure a Profile. Consult the online Administrator documentation for more information.", array(1 => $types[0])), ts('Profile Required'), 'error');
CRM_Utils_System::redirect($this->_userContext);
}
'result' => FALSE,
),
4 => array(
- 'title' => ts('Batch update contributions via profile'),
+ 'title' => ts('Update multiple contributions'),
'class' => array(
'CRM_Contribute_Form_Task_PickProfile',
'CRM_Contribute_Form_Task_Batch',
* @param array $defaults
* Defaults array.
* @param bool $singleProfile
- * True for single profile else false(batch update).
+ * True for single profile else false(Update multiple items).
* @param int $componentId
* Id for specific components like contribute, event etc.
* @param null $component
continue;
}
- //set the field name depending upon the profile mode(single/batch)
+ //set the field name depending upon the profile mode(single/multiple)
if ($singleProfile) {
$fldName = $name;
}
CRM_Core_Error::fatal('ufGroupId is missing');
}
- $this->_title = ts('Batch Update for Events') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
+ $this->_title = ts('Update multiple participants') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
CRM_Utils_System::setTitle($this->_title);
$this->addDefaultButtons(ts('Save'));
$this->_fields = array();
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('Batch Update for Event Participants'));
+ CRM_Utils_System::setTitle(ts('Update multiple participants'));
$validate = FALSE;
//validations
if (count($this->_participantIds) > $this->_maxParticipations) {
- CRM_Core_Session::setStatus("The maximum number of event participations you can select for Batch Update is {$this->_maxParticipations}. You have selected " . count($this->_participantIds) . ". Please select fewer participantions from your search results and try again.");
+ CRM_Core_Session::setStatus("The maximum number of records you can select for Update multiple participants is {$this->_maxParticipations}. You have selected " . count($this->_participantIds) . ". Please select fewer participantions from your search results and try again.");
$validate = TRUE;
}
$profiles = CRM_Core_BAO_UFGroup::getProfiles($types, TRUE);
if (empty($profiles)) {
- CRM_Core_Session::setStatus("To use Batch Update for event participants, you need to configure a profile containing only Participant fields (e.g. Participant Status, Participant Role, etc.). Configure a profile at 'Administer CiviCRM >> Customize >> CiviCRM Profile'.");
+ CRM_Core_Session::setStatus("To use Update multiple participants, you need to configure a profile containing only Participant fields (e.g. Participant Status, Participant Role, etc.). Configure a profile at 'Administer CiviCRM >> Customize >> CiviCRM Profile'.");
CRM_Utils_System::redirect($this->_userContext);
}
'result' => FALSE,
),
4 => array(
- 'title' => ts('Batch update participants via profile'),
+ 'title' => ts('Update multiple participants'),
'class' => array(
'CRM_Event_Form_Task_PickProfile',
'CRM_Event_Form_Task_Batch',
'result' => TRUE,
),
15 => array(
- 'title' => ts('Participant status - change'),
+ 'title' => ts('Participant status - change (emails sent)'),
'class' => 'CRM_Event_Form_Task_ParticipantStatus',
'result' => TRUE,
),
if (!$ufGroupId) {
CRM_Core_Error::fatal('ufGroupId is missing');
}
- $this->_title = ts('Batch Update for Members') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
+ $this->_title = ts('Update multiple memberships') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
CRM_Utils_System::setTitle($this->_title);
$this->addDefaultButtons(ts('Save'));
}
//fix to reduce size as we are using this field in grid
- if (is_array($field['attributes']) && $this->_fields[$name]['attributes']['size'] > 19) {
+ if (is_array($field['attributes']) && !empty($this->_fields[$name]['attributes']['size']) && $this->_fields[$name]['attributes']['size'] > 19) {
//shrink class to "form-text-medium"
$this->_fields[$name]['attributes']['size'] = 19;
}
$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 Batch Update."), ts('Unsupported Field Type'), 'error');
+ 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');
}
$this->addDefaultButtons(ts('Update Memberships'));
$session = CRM_Core_Session::singleton();
$this->_userContext = $session->readUserContext();
- CRM_Utils_System::setTitle(ts('Batch Profile Update for Membership'));
+ CRM_Utils_System::setTitle(ts('Update multiple memberships'));
$validate = FALSE;
//validations
if (count($this->_memberIds) > $this->_maxMembers) {
- CRM_Core_Session::setStatus(ts("The maximum number of members you can select for Batch update is %1. You have selected %2. Please select fewer members from your search results and try again.", array(
+ CRM_Core_Session::setStatus(ts("The maximum number of members you can select for Update multiple memberships is %1. You have selected %2. Please select fewer members from your search results and try again.", array(
1 => $this->_maxMembers,
2 => count($this->_memberIds),
)), ts('Batch Update Error'), 'error');
$profiles = CRM_Core_BAO_UFGroup::getProfiles($types, TRUE);
if (empty($profiles)) {
- CRM_Core_Session::setStatus(ts("You will need to create a Profile containing the %1 fields you want to edit before you can use Batch update memberships via profile. Navigate to Administer CiviCRM >> CiviCRM Profile to configure a Profile. Consult the online Administrator documentation for more information.", array(1 => $types[0])), ts('Batch Update Error'), 'error');
+ CRM_Core_Session::setStatus(ts("You will need to create a Profile containing the %1 fields you want to edit before you can use Update multiple memberships. Navigate to Administer CiviCRM >> CiviCRM Profile to configure a Profile. Consult the online Administrator documentation for more information.", array(1 => $types[0])), ts('Batch Update Error'), 'error');
CRM_Utils_System::redirect($this->_userContext);
}
'result' => TRUE,
),
5 => array(
- 'title' => ts('Batch update memberships via profile'),
+ 'title' => ts('Update multiple memberships'),
'class' => array(
'CRM_Member_Form_Task_PickProfile',
'CRM_Member_Form_Task_Batch',
<div id="help">
{ts}Update field values for each Activities as needed. Click <strong>Update Activities</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first Activity and then click the <strong>Copy icon</strong> (next to the column title).{/ts}
</div>
- <legend>{$profileTitle}</legend>
<div class="crm-submit-buttons">{if $fields}{$form._qf_Batch_refresh.html}{/if}{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
<table class="crm-copy-fields">
<thead class="sticky">
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
-{*Batch update for contact via profile*}
+{*Update multiple contacts*}
<div class="crm-block crm-form-block crm-contact-task-pickprofile-form-block">
<table class="form-layout-compressed">
<tr class="crm-contact-task-pickprofile-form-block-uf_group_id">
<div id="help">
{ts}Update field values for each contribution as needed. Click <strong>Update Contributions</strong> below to save all your changes. To set a field to the same value for ALL rows, enter that value for the first contribution and then click the <strong>Copy icon</strong> (next to the column title).{/ts}
</div>
- <legend>{$profileTitle}</legend>
<table class="crm-copy-fields">
<thead class="sticky">
<tr class="columnheader">
+--------------------------------------------------------------------+
*}
<div class="crm-block crm-form-block crm-event-pickprofile-form-block">
- <legend>{ts}Batch Update Event via Profile{/ts}</legend>
<table class="form-layout">
<tr class="crm-event-pickprofile-form-block-uf_group_id">
<td class="label">{$form.uf_group_id.label}</td>
/**
* Display sort name during.
- * contribution batch update through profile
+ * Update multiple contributions
* sortName();
*/
public function testsortName() {
$this->assertEquals($param['trxn_id'], $contribution->trxn_id, 'Check for transcation id creation.');
$this->assertEquals($contactId, $contribution->contact_id, 'Check for contact id creation.');
- //display sort name during batch update
+ //display sort name during Update multiple contributions
$sortName = CRM_Contribute_BAO_Contribution::sortName($contribution->id);
$this->assertEquals('Whatson, Shane', $sortName, 'Check for sort name.');
/**
* Take sort name of contact during
- * batch update member via profile
+ * Update multiple memberships
*/
public function testsortName() {
$contactId = Contact::createIndividual();
$this->click($id2);
// Change participant status for selected participants
- $this->select('task', "label=Participant status - change");
+ $this->select('task', "label=Participant status - change (emails sent)");
$this->waitForElementPresent('_qf_ParticipantStatus_next');
$this->select('status_change', "label=Attended");
$this->waitForElementPresent('CIVICRM_QFID_ts_all_4');
$this->click('CIVICRM_QFID_ts_all_4');
- $this->select('task', "label=Batch update contacts via profile");
+ $this->select('task', "label=Update multiple contacts");
$this->waitForElementPresent('_qf_PickProfile_next');
$this->waitForElementPresent('uf_group_id');
$this->select('uf_group_id', "label={$profileTitle}");
$this->waitForElementPresent('CIVICRM_QFID_ts_all_4');
$this->click('CIVICRM_QFID_ts_all_4');
- $this->select('task', "label=Batch update contacts via profile");
+ $this->select('task', "label=Update multiple contacts");
$this->waitForElementPresent('_qf_PickProfile_next');
$this->select('uf_group_id', "label={$profileTitle}");
$this->waitForElementPresent('CIVICRM_QFID_ts_all_4');
$this->click('CIVICRM_QFID_ts_all_4');
- $this->select('task', "label=Batch update contacts via profile");
+ $this->select('task', "label=Update multiple contacts");
$this->waitForElementPresent('_qf_PickProfile_next');
$this->select('uf_group_id', "label={$profileTitle}");