From 400846810be1c87c189f4f36fd3bd5cbc162ce85 Mon Sep 17 00:00:00 2001 From: jitendrapurohit Date: Tue, 13 May 2014 19:34:04 +0530 Subject: [PATCH] Webtest Core bugs --- CRM/Custom/Form/Field.php | 2 +- templates/CRM/Contact/Form/Selector.tpl | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CRM/Custom/Form/Field.php b/CRM/Custom/Form/Field.php index 10b3b1da92..bf63a9fc2d 100644 --- a/CRM/Custom/Form/Field.php +++ b/CRM/Custom/Form/Field.php @@ -1000,7 +1000,7 @@ SELECT id $buttonName = $this->controller->getButtonName(); $session = CRM_Core_Session::singleton(); if ($buttonName == $this->getButtonName('next', 'new')) { - $msg += '

' . ts("Ready to add another.") . '

'; + $msg .= '

' . ts("Ready to add another.") . '

'; $session->replaceUserContext(CRM_Utils_System::url('civicrm/admin/custom/group/field/add', 'reset=1&action=add&gid=' . $this->_gid )); diff --git a/templates/CRM/Contact/Form/Selector.tpl b/templates/CRM/Contact/Form/Selector.tpl index a628a5c9cb..e485efa9d9 100644 --- a/templates/CRM/Contact/Form/Selector.tpl +++ b/templates/CRM/Contact/Form/Selector.tpl @@ -172,6 +172,9 @@ function countSelections(obj) { label.prepend('' + obj.getCount + ' '); } else { + if(obj.getCount > 0) { + cj('input[name=radio_ts][value=ts_sel]').prop('checked', true); + } cj('span', label).html(obj.getCount); } toggleTaskAction(obj.getCount); @@ -180,7 +183,7 @@ function countSelections(obj) { function toggleContactSelection(name, qfKey, selection) { var url = CRM.url('civicrm/ajax/markSelection'); var params = {qfKey: qfKey}; - if (!(cj('#' + name).is(':checked'))) { + if( cj('#' + name + ":checked").length == 0) { params.action = 'unselect'; params.state = 'unchecked'; } -- 2.25.1