Skip to content
Snippets Groups Projects
Commit 1ac48614 authored by lobo's avatar lobo
Browse files

Merge pull request #1766 from pratik-joshi/CRM-13551

CRM-13551
parents ac6c22d7 3e1c61a7
No related branches found
No related tags found
No related merge requests found
...@@ -389,7 +389,7 @@ WHERE a.id = %1 ...@@ -389,7 +389,7 @@ WHERE a.id = %1
); );
$reporterSortName = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $reporterSortName = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact',
$activityDAO->source_contact_id, $source_contact_id,
'sort_name' 'sort_name'
); );
if (!array_key_exists($reporterSortName, $this->_redactionStringRules)) { if (!array_key_exists($reporterSortName, $this->_redactionStringRules)) {
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
cj( 'ul.token-input-list-facebook, div.token-input-dropdown-facebook' ).css( 'width', '450px' ); cj( 'ul.token-input-list-facebook, div.token-input-dropdown-facebook' ).css( 'width', '450px' );
cj('#source_contact_id').autocomplete( sourceDataUrl, { width : 180, selectFirst : false, hintText: hintText, matchContains: true, minChars: 1, max: {/literal}{crmSetting name="search_autocomplete_count" group="Search Preferences"}{literal} cj('#source_contact_id').autocomplete( sourceDataUrl, { width : 180, selectFirst : false, hintText: hintText, matchContains: true, minChars: 1, max: {/literal}{crmSetting name="search_autocomplete_count" group="Search Preferences"}{literal}
}).result( function(event, data, formatted) { cj( "#source_contact_qid" ).val( data[1] ); }).result( function(event, data, formatted) { cj( "#source_contact_qid" ).val( data[1] );
}).bind( 'click', function( ) { cj( "#source_contact_qid" ).val(''); }); }).bind( 'click', function( ) { if (!cj("#source_contact_id").val()) { cj( "#source_contact_qid" ).val(''); } });
}); });
</script> </script>
......
...@@ -112,7 +112,10 @@ ...@@ -112,7 +112,10 @@
// setdefaults incase of formRule // setdefaults incase of formRule
{/literal} {/literal}
{if $selectedContacts} {if $selectedContacts}
{literal} var prePopulateData = cj.ajax({ url: contactUrl + "&cid={/literal}{$selectedContacts}{literal}", async: false }).responseText;{/literal} {literal}
var prePopulateData = cj.ajax({ url: contactUrl + "&cid={/literal}{$selectedContacts}{literal}", async: false }).responseText;
prePopulateData = cj.parseJSON(prePopulateData);
{/literal}
{/if} {/if}
{literal} {literal}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment