Hi,

Thanks for a great module.

I was having errors on setting recurring events on Sunday. I traced it to a function that ordered the days prior to presenting the form options; date_repeat_dow_day_options_ordered. The function reorders the weekdays, but use of array_shift and array_push loses the array key and creates the bug.

Attached is a patch that worked for me.

Comments

Status: Needs review » Needs work

The last submitted patch, date_repeat_options_ordered.patch, failed testing.

arlinsandbulte’s picture

Status: Needs work » Needs review
StatusFileSize
new852 bytes

Code makes sense to me.
Rerolled, so testbot can apply patch.

Status: Needs review » Needs work

The last submitted patch, Recurring_Sunday_Errors-1467244-2.patch, failed testing.

arlinsandbulte’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, Recurring_Sunday_Errors-1467244-2.patch, failed testing.

arlinsandbulte’s picture

Hmmm... tests pass for me locally before and after the patch.
Branch tests at http://drupal.org/project/date/testing-status ALSO pass (before patch).

I will try resubmitting the patch in #2 one more time....

arlinsandbulte’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, Recurring_Sunday_Errors-1467244-2.patch, failed testing.

arlinsandbulte’s picture

Version: 7.x-2.2 » 7.x-2.x-dev

try testing with right version....

arlinsandbulte’s picture

Status: Needs work » Needs review
arlinsandbulte’s picture

StatusFileSize
new909 bytes

Yep, needed to test against the -dev branch head, not the 7.x-2.2 tag.
Someone else pointed out that the if is not needed... so here is another patch to remove the if statement.

If tests pass, I will commit this.

arlinsandbulte’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.