I've encountered a fairly serious problem (as in, it would be very confusing and annoying for the non-tech-adept person who normally edits the calendar on the site in question). I set the week to start on Sunday, not Saturday, but after editing a couple of months, it keeps reverting back to Saturday for the week start. I've tried flushing all caches and running cron after changing the setting, but it doesn't help.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1048010.patch | 490 bytes | fietserwin |
Comments
Comment #1
matolog commentedi have the same problem. does somebody fix this bug ?
Comment #2
fietserwinOn porting the code to D7, I found that saving the settings is done both on editing the node and editing the availability of the node. (This is due to a call to node_save() in function availability_calendars_node_edit_form_submit() which leads to a call to function availability_calendars_nodeapi which calls availability_calendars_save without the settings being initialized.)
The patch is to change the line that calls node_save into cache_clear_all():
old:
new:
Comment #3
nicholas.alipaz commentedFixed:
http://drupal.org/commitlog/commit/7166/686b2a25ab9a46be9f06c2e35b51622b...
Thanks
Comment #4
nicholas.alipaz commentedJust to note, this will be fixed in upcoming 6.x-1.6 release.
Comment #5
metakel commentedI cannot find the option to set the starting day (default is Saturday) on the 6.x-2.x-dev (2011-Mar-07). May I know where or how can I set it to Sunday?
Comment #6
fietserwin@metakel: This is a setting that can only be set on the node level, not in the admin settings form. The fix for #764406: Allow admin to hide the 'calendar settings' form on the node edit page changes this, so that it can be set on both levels: global by admin, per node by admin/editor/owner (if per node overrides are enabled).