$contactTypes = array('Contact', 'Individual', 'Household', 'Organization');
for ($rowNumber = 1; $rowNumber <= $this->_batchInfo['item_count']; $rowNumber++) {
- CRM_Contact_Form_NewContact::buildQuickForm($this, $rowNumber, NULL, TRUE, 'primary_');
+ CRM_Contact_Form_NewContact::buildQuickForm($this, $rowNumber, NULL, TRUE, 'primary_', ts('Contact'));
// special field specific to membership batch udpate
if ($this->_batchInfo['type_id'] == 2) {
*
* @return void
*/
- static function buildQuickForm(&$form, $blockNo = 1, $extraProfiles = NULL, $required = FALSE, $prefix = '') {
+ static function buildQuickForm(&$form, $blockNo = 1, $extraProfiles = NULL, $required = FALSE, $prefix = '', $label = NULL) {
// call to build contact autocomplete
$attributes = array('width' => '200px');
- $selectContacts = $form->add('text', "{$prefix}contact[{$blockNo}]", ts('Select Contact'), $attributes, $required);
+ if (!$label) {
+ $label = ts('Select Contact');
+ }
+
+ $selectContacts = $form->add('text', "{$prefix}contact[{$blockNo}]", $label, $attributes, $required);
// use submitted values to set default if form submit fails dues to form rules
if ($selectContacts->getValue()) {