Skip to content

Commit

Permalink
Fix user task assignment UI (#4128)
Browse files Browse the repository at this point in the history
* remove ROLE_ from system roles + refactoring

Signed-off-by: Iliyan Velichkov <[email protected]>

* Fix user task assignment UI

Signed-off-by: Iliyan Velichkov <[email protected]>

---------

Signed-off-by: Iliyan Velichkov <[email protected]>
  • Loading branch information
iliyan-velichkov authored Jul 9, 2024
1 parent d1c6ee3 commit ef179ba
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ef179ba

Please sign in to comment.