[Bug]: User Task OnAssistEdit Missing Filter On Full User

Đang mở Phù hợp với người mới
#14,386 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend

Hướng nghiên cứu

Tìm trang User Task Card trong các nguồn AL của BCApps và trigger OnAssistEdit của trường "Assigned To User Name"; issue đã hiển thị thay đổi dự kiến. So sánh nó với TableRelation trên trường "Assigned To" của bảng User Task (User."User Security ID" where("License Type" = const("Full User"))) để assist edit khớp với validation. Đọc trong codeunit "User Selection" Open để xem recordset đã lọc ảnh hưởng đến điều gì. Hoàn tất khi Limited User không còn xuất hiện trong picker và không có lỗi validation nào được đưa ra.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Approved Team: Integrations
Describe the issue

In the user task card one can select an assigned to user by using the assist edit. The users list has no filter on Licence Type = Full User. If a limited user is selected, an error appears because the field "Assigned To" in the user task table has the property TableRelation = User."User Security ID" where("License Type" = const("Full User"));

Expected behavior

The users list opened by assist edit should have the filter on "License Type" = "Full User".
The following fix for the UserTaskCard

                field("Assigned To User Name"; Rec."Assigned To User Name")
                {
                    ApplicationArea = Basic, Suite;
                    DrillDown = false;
                    ToolTip = 'Specifies who the task is assigned to.';

                    trigger OnAssistEdit()
                    var
                        User: Record User;
                        UserSelection: Codeunit "User Selection";
                    begin
                        User.SetRange("License Type", User."License Type"::"Full User");
                        User.SetRange(State, User.State::Enabled);
        
                        if UserSelection.Open(User) then begin
                            Rec.Validate("Assigned To", User."User Security ID");
                            CurrPage.Update(true);
                        end;
                    end;
                }
Steps to reproduce

Create a user with the license type "Limited User".
Create a new user task and select this user in the field "User Assigned To"
An error occurs because it is not a full user.

Additional context

No response

I will provide a fix for a bug
  • I will provide a fix for a bug
Ngôn ngữ chính
AL
Star
730
Fork
514
Merge trung bình
2 ngày 23 giờ
Pull request đã merge (30 ngày)
601

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/BCApps

Tất cả issue của microsoft/BCApps

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.