Closed (works as designed)
Project:
Workflow
Version:
6.x-1.0-rc3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Nov 2008 at 08:35 UTC
Updated:
14 Nov 2011 at 17:18 UTC
I have two problem now
1. I have a date field with "From-To Date". At a state that have view but not edit for this date field, I can save the node because it warning I have to enter value in the To date.
warning: Invalid argument supplied for foreach() in D:\Drupal\www\sites\all\modules\date\date\date_elements.inc on line 388.
Some value must be entered in the To date. 2. Second, I have a field that a user in a state have to fill it (to not null). If I not allow the Workflow Tab to this user so his only able change to next state by edit this node, and so his have to fill this field. How can I do this "when a field doesn't have value, do not allow change to next state"?
Comments
Comment #1
Bastlynn commentedFor issue #1 - I think that may be an issue for the Date module to resolve. Though I wonder how you got the node to save at all in the first place without that value set. When viewing the node workflow isn't doing anything special.
For issue #2 - Make the field not required. Required fields are required for a reason, and overriding that isn't a wise approach to resolving this issue without causing more of them.
You seem to be doing some very complicated things with permissions, all the way down to field level permissions. It might be worthwhile to review what you're doing and consider if you can simplify your permission system.
Since the last post to this request was over a year ago, I'm going to assume you got it worked out and will close the ticket. If not, feel free to open a new request.