fix broken PG config dialog when user has read only perms on the PG. This closes
// store the process group
$('#process-group-configuration').data('process-group', response);
- if (response.permissions.canWrite) {
var processGroup = response.component;
+ if (response.permissions.canWrite) {
+
// populate the process group settings
$('#process-group-name').removeClass('unset').val(processGroup.name);
$('#process-group-comments').removeClass('unset').val(processGroup.comments);
} else {
if (response.permissions.canRead) {
// populate the process group settings
- $('#read-only-process-group-name').removeClass('unset').text(response.component.name);
- $('#read-only-process-group-comments').removeClass('unset').text(response.component.comments);
+ $('#read-only-process-group-name').removeClass('unset').text(processGroup.name);
+ $('#read-only-process-group-comments').removeClass('unset').text(processGroup.comments);
// populate the header
$('#process-group-configuration-header-text').text(processGroup.name + ' Configuration');
