Skip to content

Commit

Permalink
[releases/25.x] No. Series page closes when Code has special chars (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
grobyns authored Dec 18, 2024
1 parent 2877b94 commit 39538f3
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ codeunit 305 "No. Series - Setup Impl."
var
NoSeriesLine2: Record "No. Series Line";
NoSeries: Codeunit "No. Series";
NoSeriesCodeFilter: Text;
PreEventFilter, PostEventFilter : Text;
begin
NoSeriesLine2.SetCurrentKey("Series Code", "Starting Date");
NoSeriesLine2.SetRange("Starting Date", 0D, StartingDate);
NoSeriesLine2.SetRange("Series Code", NoSeriesCode);
PreEventFilter := NoSeriesLine2.GetFilter("Series Code");
NoSeries.OnSetNoSeriesLineFilters(NoSeriesLine2);
if NoSeriesCode <> '' then
NoSeriesCodeFilter := NoSeriesLine2.GetFilter("Series Code");
if NoSeriesCodeFilter <> NoSeriesCode then
Error(CodeFieldChangedErr, NoSeriesLine2.FieldCaption("Series Code"), NoSeriesCode, NoSeriesCodeFilter);
PostEventFilter := NoSeriesLine2.GetFilter("Series Code");
if PreEventFilter <> PostEventFilter then
Error(CodeFieldChangedErr, NoSeriesLine2.FieldCaption("Series Code"), PreEventFilter, PostEventFilter);

NoSeriesLine.SetCurrentKey("Series Code", "Starting Date");
NoSeriesLine.CopyFilters(NoSeriesLine2);
Expand Down

0 comments on commit 39538f3

Please sign in to comment.