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

オープン 初心者向け
#14,386 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
領域
backend

調査の方向性

BCApps の AL ソースで User Task Card ページ、および OnAssistEdit トリガー("Assigned To User Name" フィールド)を見つけてください。issue にはすでに意図された変更が示されています。これを、TableRelation(User Task テーブルの "Assigned To" フィールド、User."User Security ID" where("License Type" = const("Full User")))と比較し、assist edit が検証と一致するようにしてください。"User Selection" codeunit の Open を読み、フィルターされた recordset が何に影響するかを確認してください。Limited User が picker に表示されなくなり、検証エラーが発生しなくなったら完了です。

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
AL
スター
730
フォーク
514
平均マージ
2日 23時間
マージ済み PR(30日)
601

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/BCApps のほかの issue

microsoft/BCApps の issue をすべて見る

似ている issue

Backend & API Design の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。