Skip to content

Commit

Permalink
无法按条件规则添加内容 fixs #503
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Dec 7, 2023
1 parent c07ccc3 commit d698b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZKEACMS/Controllers/WidgetController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ private ActionResult CreateWidgetFromExistingWidget(QueryContext context)
WidgetBase widget = widgetPartDriver.GetWidget(widgetBasePart.ToWidgetBase());
if (widget == null) return BadRequest();

SetDefaultValuesToWidget(context, widget);
widget.IsTemplate = false;
widget.IsSystem = false;
widget.Thumbnail = null;
widget.RuleID = null;
SetDefaultValuesToWidget(context, widget);
widgetPartDriver.AddWidget(widget);
return RedirectToAction("Edit", new { ID = widget.ID, ReturnUrl = context.ReturnUrl });
}
Expand Down

0 comments on commit d698b38

Please sign in to comment.