CRM-14927 - Batch update via Profile - copy icon fails for fields of 'select' type
authoratif-shaikh <shaikh388@gmail.com>
Tue, 1 Jul 2014 12:50:31 +0000 (18:20 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Tue, 1 Jul 2014 12:50:31 +0000 (18:20 +0530)
https://issues.civicrm.org/jira/browse/CRM-14927

templates/CRM/common/batchCopy.tpl

index 5582e9e0e881b29e49d2550bb91333b428e12b50..8103142b1fe012e526ddbdc0855669d50a0f1491 100644 (file)
         }
       }
       else {
-        if (elementId.is('select') === true && firstElement.parent().find(':input').select().index() >= 1) {
+        if (elementId.is('select') === true && firstElement.parent().find(':input').select().index() >= 1 && firstElement.parent().find('select').select().index < 1) {
           // its a multiselect case
           firstElement.parent().find(':input').select().each( function(count) {
             var firstElementValue = cj(this).val();