Closed (fixed)
Project:
Workflow
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2013 at 20:23 UTC
Updated:
5 May 2013 at 21:30 UTC
In workflow.module line 595, the default value for the state change scheduled time is '24:00', which is not a valid time. This is mainly an issue because, when you select to change the state immediately, the validation with modules like workflow-extensions checks the validity of all fields (which they shouldn't do, but default values should also not be invalid). Changing the line to the default to '00:00' fixes the issue.
Original code:
'#default_value' => $scheduled ?
(isset($form_state['values']['workflow_scheduled_hour']) ?
$form_state['values']['workflow_scheduled_hour'] : $hours) : '24:00',
Valid code:
'#default_value' => $scheduled ?
(isset($form_state['values']['workflow_scheduled_hour']) ?
$form_state['values']['workflow_scheduled_hour'] : $hours) : '00:00',
Comments
Comment #1
nancydrucommitted with another issue