Automatic merge from release/2.2.0 -> release/2.3.0

* commit 'efb17ea441b34b078d36cbf32023ab8def0a6c92':
  添加更新操作后的操作
This commit is contained in:
邱剑
2018-11-13 22:02:07 +08:00
+1
View File
@@ -1148,6 +1148,7 @@ func updateItem(manager IModelManager, item IModel, ctx context.Context, userCre
if diff != nil {
diffStr := sqlchemy.UpdateDiffString(diff)
if len(diffStr) > 0 {
item.PostUpdate(ctx, userCred, query, dataDict)
OpsLog.LogEvent(item, ACT_UPDATE, diffStr, userCred)
logclient.AddActionLog(item, logclient.ACT_UPDATE, diffStr, userCred, true)
}