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:

hours highlighted in red

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?

CommentFileSizeAuthor
Screenshot_16_07_2013_16_37.png46.58 KBtherobyouknow
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

therobyouknow’s picture

johnv’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

therobyouknow’s picture

thank 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.

christophdemon’s picture

Issue summary: View changes

Actually, 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

alexanansi’s picture

I got this issue when I had the granularity set to one hour - I changed it to 15 minutes and it started working.

johnv’s picture

Status: Postponed (maintainer needs more info) » Active
johnv’s picture

Title: When entering hours for more than one day, error Opening times: "this field cannot hold more than 1 values." » Error: "this field cannot hold more than 1 values."
Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Closed (works as designed)

This 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.

manoloka’s picture

I think this is fixed with the latest dev version