Skip to content

Commit

Permalink
Fix for create date gets lost
Browse files Browse the repository at this point in the history
  • Loading branch information
artem78 committed Jun 26, 2022
1 parent e0df512 commit 973fd3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nonvisualctrlsdm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,8 @@ procedure TNonVisualCtrlsDataModule.EditTaskActionExecute(Sender: TObject);
Edit;
if TaskEditForm.ShowModal = mrOK then
begin
FieldByName('created').AsDateTime :=
TTask.GetById(FieldByName('id').AsInteger).Created; // Fix for date gets lost
FieldByName('modified').AsDateTime := Now;
Post;
ApplyUpdates;
Expand Down

0 comments on commit 973fd3d

Please sign in to comment.