Skip to content

Commit

Permalink
Merge pull request #1313 from plone/petschki-recurrence-fix
Browse files Browse the repository at this point in the history
Fix `pat-recurrence` default selected "range option"
  • Loading branch information
frapell authored Apr 26, 2023
2 parents 6ed4b63 + 818313d commit be3025c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pat/recurrence/recurrence.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ function widgetLoadFromRfc5545(form, conf, icaldata, force) {
break;

case "rirangeoptions":
var rangeType = "NOENDDATE";
// default value per configuration
var rangeType = conf.hasRepeatForeverButton ? "NOENDDATE" : "BYOCCURRENCES";

if (count) {
rangeType = "BYOCCURRENCES";
Expand Down

0 comments on commit be3025c

Please sign in to comment.