CRM-18288: Fix mergeBlock JS for location types
authorJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 24 Mar 2016 14:35:39 +0000 (14:35 +0000)
committerJKingsnorth <john@johnkingsnorth.co.uk>
Thu, 24 Mar 2016 14:35:39 +0000 (14:35 +0000)
templates/CRM/Contact/Form/Merge.tpl

index 96f23c585cf2e24ced3c48176ce2ca96d31666b2..6e569d5e8252c5c9363ea1d5ad5b4dfceaf0ac55 100644 (file)
     // If the location was changed, lookup the type if it exists
     if (type == 'locTypeId') {
       locTypeId = element.value;
-      typeTypeId = CRM.$( 'select#type_' + blockname + '_' + blockId + '_typeTypeId' ).val();
+      typeTypeId = CRM.$( 'select#location_' + blockname + '_' + blockId + '_typeTypeId' ).val();
     }
 
     // Otherwise the type was changed, lookup the location if it exists