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

nancydru’s picture

Status: Active » Fixed

committed with another issue

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.