Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
e.g.
when I just enter
Sunday from 12 00 until 17 00
this is accepted
However, if I add another day
e.g.
Tuesday from 12 00 until 22 00
I then get the error message.
And the Opening Times form section looks like:
No clue or hint is given as to what is wrong.
I did try setting the blocks from '2' to '12' in the content type edit fields section - admin/structure/types/manage/local-resource/fields/field_opening_times
but this just created more add new times / "and from"
How am I supposed to add the opening times for a week then?
Comment | File | Size | Author |
---|---|---|---|
Screenshot_16_07_2013_16_37.png | 46.58 KB | therobyouknow |
Comments
Comment #1
therobyouknow CreditAttribution: therobyouknow commentedI've switched to using timefield: see here: https://drupal.org/project/timefield
and here:
http://drupal.stackexchange.com/questions/2847/creating-a-store-open-hou...
Comment #2
johnvI cannot reproduce your problem. I suppose you are a new user, so I have tried your example on a new installation, and it works fine.
Perhaps you can send me an image of your field settings?
The 'number of values' should be set to 'unlimited', but that is a setting you shouldn't be able to change.
Comment #3
therobyouknow CreditAttribution: therobyouknow commentedthank you for time looking into this problem, johnv, I'd like to try out your suggestion for number of values in comment 2 being set to unlimited. I do feel that timefield does the job for me and uses the built-in functionality of add more fields to provide good flexibility about opening times. It's healthy to have competing modules and to suit people's preferences so I will try to support office hours by giving more background about my issue when I can. I cannot give a particular time scale at the moment though, sorry.
Another area of interest I have is opening hours that aren't the same every week, or things that only happen every so often. So a future module idea might be to explore that.
Comment #4
christophdemon CreditAttribution: christophdemon commentedActually, this bug can be reproduced.
In my initial field setup I've set the granularity to half an hour and got the same error message: Opening hours: this field cannot hold more than 1 values.
When resetting the granularity to 1 hour, I could add multiple hours.
After that I switched back to half an hour to see what happens and strangely enough, I can now add multiple days with half an hour.
Hope this helps.
Christoph
Comment #5
alexanansi CreditAttribution: alexanansi commentedI got this issue when I had the granularity set to one hour - I changed it to 15 minutes and it started working.
Comment #6
johnvComment #7
johnvThis happens when admin creates/adds a field, but does not finish the procedure by saving theSettings on the "EDIT" and "FIELD SETTINGS" tabs for the field.
When you go back to the field settings, change something and save both tabs, then the procedure is corectly finished.
This can happen with any field, so I can't / won't provide a fix for it.
Comment #8
manoloka CreditAttribution: manoloka commentedI think this is fixed with the latest dev version