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

Aperta Adatta ai principianti
#14,386 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
backend

Direzione di ricerca

Trova la pagina User Task Card nelle sorgenti AL di BCApps e il trigger OnAssistEdit del campo "Assigned To User Name"; l'issue mostra già la modifica prevista. Confrontalo con la TableRelation sul campo "Assigned To" della tabella User Task (User."User Security ID" where("License Type" = const("Full User"))) in modo che l'assist edit corrisponda alla validazione. Leggi nel codeunit "User Selection" Open per vedere su cosa influisce il recordset filtrato. Fatto quando un Limited User non appare più nel picker e non viene generato alcun errore di validazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
AL
Stelle
730
Fork
514
Merge medio
2g 23h
PR unite (30g)
601

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/BCApps

Tutte le issue di microsoft/BCApps

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.