Skip to content

Commit

Permalink
Disable inline-edit of multi-record custom fields in profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Jul 10, 2018
1 parent c776a4e commit 13f7c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CRM/Profile/Page/MultipleRecordFieldsListing.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ public function browse() {
// TODO: Not all widget types and validation rules are supported by crmEditable so some fields will not be in-place editable
$fieldAttributes = array('class' => "crmf-custom_{$fieldId}_$recId");
$editable = FALSE;
if (!$options[$fieldId]['attributes']['is_view'] && $linkAction & CRM_Core_Action::UPDATE) {
if (!$options[$fieldId]['attributes']['is_view'] && $this->_pageViewType == 'customDataView' && $linkAction & CRM_Core_Action::UPDATE) {
$spec = $options[$fieldId]['attributes'];
switch ($spec['html_type']) {
case 'Text':
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Profile/Page/MultipleRecordFieldsListing.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
}
}
});
},
}
})
})(CRM.$);
</script>
Expand Down

0 comments on commit 13f7c84

Please sign in to comment.