liedekef / events-made-easy

The wordpress/classicpress plugin events-made-easy to manage events, memberships and more.
https://www.e-dynamics.be/wordpress
GNU General Public License v2.0
26 stars 5 forks source link

compicated recurring event has issues #416

Closed hmhofman closed 9 months ago

hmhofman commented 9 months ago

Describe the bug I'm trying to create a recurring event on the 3rd Wednesday of every month. For some reason, it resets to every 1st Monday.

I notice the POST request has the fields in there twice:

(...)
Content-Disposition: form-data; name="recurrence_byweekno"

3
-----------------------------271634183624509698881162458920
Content-Disposition: form-data; name="recurrence_byday"

3
-----------------------------271634183624509698881162458920
Content-Disposition: form-data; name="recurrence_byweekno"

1
-----------------------------271634183624509698881162458920
Content-Disposition: form-data; name="recurrence_byday"

1
(...)

The field are in the HTML in the spans with id monthly-selector and specific_months-selector

Expected behavior Only send the right value for _recurrencebyweekno and _recurrencebyday

Version info PHP version: v8.2.14 WordPress 6.4.2 (NL) MYSQL: v10.5.23-MariaDB

liedekef commented 9 months ago

Can you check if this changeset for eme_recurrence.php fixes it? https://github.com/liedekef/events-made-easy/commit/3880e8f8223bbb185b06ea7f23ca18b026d25281

liedekef commented 9 months ago

This changeset should be ok, so I'll close this and release the fixed version.