Fix child groups so that they can be expanded
authorsleewok <lee@uberactive.com>
Thu, 24 Mar 2016 13:57:43 +0000 (09:57 -0400)
committersleewok <lee@uberactive.com>
Thu, 24 Mar 2016 13:57:43 +0000 (09:57 -0400)
When managing groups you cannot expand (uncollapse) 2nd level child groups. Clicking on the arrow to view children initiates inline editing. The inline editing field is encompassing the expand icon that allows children to be viewed. This effectively breaks management of child groups from the manage groups page. Changing this line fixes the issue.

templates/CRM/Group/Form/Search.tpl

index 7a7778f4b887b8db942b7147126d345569bb01f2..147aefc35c047716638ca840d98c570b8e831978 100644 (file)
               $.each( response.data, function( i, val ) {
                 appendHTML += '<tr id="row_'+val.group_id+'_'+parent_id+'" data-entity="group" data-id="'+val.group_id+'" class="crm-entity parent_is_'+parent_id+' crm-row-child">';
                 if ( val.is_parent ) {
-                  appendHTML += '<td class="crm-group-name crmf-title crm-editable ' + levelClass + '">' + '{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span>{literal}' + val.title + '</td>';
+                  appendHTML += '<td class="crm-group-name crmf-title ' + levelClass + '">' + '{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span><div class="crm-editable">{literal}' + val.title + '</div></td>';
                 }
                 else {
                   appendHTML += '<td class="' + levelClass + '">' + '{/literal}<span class="collapsed show-children" title="{ts}show child groups{/ts}"/></span><span class="crm-group-name crmf-title crm-editable">{literal}' + val.title + '</span></td>';