Skip to content

Commit

Permalink
Merge pull request #8 from Lantzify/main
Browse files Browse the repository at this point in the history
Fixes for ticket types
  • Loading branch information
Lantzify authored Feb 22, 2023
2 parents 271af5a + 3c3b0c7 commit 3f5043a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
];

if ($scope.model.ticketType) {
if ($scope.model.ticketType && $scope.model.ticketType.PropertyId) {
uSupportTicketTypeResources.getDataTypeFromId($scope.model.ticketType.PropertyId).then(function (type) {
$scope.model.properties[0].value = $scope.model.ticketType.PropertyName;
$scope.model.properties[1].value = $scope.model.ticketType.PropertyDescription;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
vm.ticketType.Icon = iconArr[0];
vm.ticketType.Color = iconArr[1];
vm.ticketType.PropertyName = vm.properties[0].value;
vm.ticketType.PropertyDescription = vm.properties[0].value;
vm.ticketType.PropertyDescription = vm.properties[1].value;

if (vm.properties[2].singleDropdownValue !== '') {
uSupportTicketTypeResources.getDataTypeFromName(vm.properties[2].singleDropdownValue).then(function (dataType) {
Expand Down

0 comments on commit 3f5043a

Please sign in to comment.