From ef179bac6880dbe9f9868b218337cba1a819b41b Mon Sep 17 00:00:00 2001 From: Iliyan Velichkov Date: Tue, 9 Jul 2024 14:24:18 +0300 Subject: [PATCH] Fix user task assignment UI (#4128) * remove ROLE_ from system roles + refactoring Signed-off-by: Iliyan Velichkov * Fix user task assignment UI Signed-off-by: Iliyan Velichkov --------- Signed-off-by: Iliyan Velichkov --- .../properties-assignment-controller.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/components/ide/ide-ui-bpm/src/main/resources/META-INF/dirigible/ide-bpm/editor-app/configuration/properties-assignment-controller.js b/components/ide/ide-ui-bpm/src/main/resources/META-INF/dirigible/ide-bpm/editor-app/configuration/properties-assignment-controller.js index 3afa8da988c..ea077f17b18 100644 --- a/components/ide/ide-ui-bpm/src/main/resources/META-INF/dirigible/ide-bpm/editor-app/configuration/properties-assignment-controller.js +++ b/components/ide/ide-ui-bpm/src/main/resources/META-INF/dirigible/ide-bpm/editor-app/configuration/properties-assignment-controller.js @@ -31,19 +31,17 @@ angular.module('flowableModeler').controller('FlowableAssignmentCtrl', [ '$scope angular.module('flowableModeler').controller('FlowableAssignmentPopupCtrl', [ '$rootScope', '$scope', '$translate', '$http', 'UserService', 'GroupService', function($rootScope, $scope, $translate, $http, UserService, GroupService) { - // Put json representing assignment on scope + if(!$scope.assignment) { + $scope.assignment = {}; + } + if ($scope.property.value !== undefined && $scope.property.value !== null && $scope.property.value.assignment !== undefined && $scope.property.value.assignment !== null) { $scope.assignment = $scope.property.value.assignment; - if (typeof $scope.assignment.type === 'undefined') { - $scope.assignment.type = 'static'; - } - - } else { - $scope.assignment = {type:'idm'}; } + $scope.assignment.type = 'static'; $scope.popup = { assignmentObject: {