Skip to content

Commit

Permalink
AllowEmpty未打开时,UpdateUserId也不能清零,对于某些表(用户和后台程序都要更新)比较重要
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Mar 25, 2024
1 parent 0a7e9c0 commit 338fa6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XCode/Model/UserModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ protected override Boolean OnValid(IEntity entity, DataMethod method)
break;
}
}
else
else if (AllowEmpty)
{
// 在没有当前登录用户的场合,把更新者清零
SetNoDirtyItem(fs, entity, __.UpdateUserID, 0);
if (AllowEmpty) SetNoDirtyItem(fs, entity, __.UpdateUser, "");
SetNoDirtyItem(fs, entity, __.UpdateUser, "");
}

return true;
Expand Down

0 comments on commit 338fa6c

Please sign in to comment.