CRM-13143 contact reference field issue fix : the referencing for customIdObj was...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 9 Aug 2013 14:23:12 +0000 (19:53 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Fri, 9 Aug 2013 14:23:12 +0000 (19:53 +0530)
templates/CRM/Custom/Form/ContactReference.tpl

index e1ba1557cc8280948cc1b17dfa5d6ed4d8f0a613..d30ff53c60a80f2f6f832b716a89c51c10862dde 100644 (file)
@@ -37,8 +37,8 @@ cj( function( ) {
         customObj.autocomplete( url,
             { width : 250, selectFirst : false, elementId: custom,  matchContains: true, formatResult: {/literal}validate{$element_name|replace:']':''|replace:'[':'_'|replace:'-':'_'}{literal}
             }).result(
-                function(event, data ) {
-                    customIdObj.val( data[1] );
+                function(event, data) {
+                  cj(custom_id).val(data[1]);
                 }
         );
         customObj.click( function( ) {