Skip to content

Commit 6d66bf4

Browse files
committed
fix If options. EnableEdit = true, click the "New" button on the "Job" "Trigger" page, and throw the following exception #159
1 parent 4d61da0 commit 6d66bf4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sample2/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
{
3636
DayOfWeekStartIndexZero = false //Quartz uses 1-7 as the range
3737
};
38-
options.EnableEdit = false;
38+
options.EnableEdit = true;
3939
}
4040
#if ENABLE_AUTH
4141
,

src/SilkierQuartz/Controllers/TriggersController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public async Task<IActionResult> New()
8383

8484
model.Type = TriggerType.Cron;
8585
model.Priority = 5;
86-
86+
ViewBag.EnableEdit = EnableEdit;
8787
return View("Edit", new TriggerViewModel() { Trigger = model, DataMap = jobDataMap });
8888
}
8989

0 commit comments

Comments
 (0)