scheduler validate function not actually getting called/working

greggles - October 29, 2008 - 17:37
Project:Scheduler
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I kept getting php errors with the 6.x version whenever I tried to create a node scheduled to be published:

Array to string conversion in /opt/local/apache2/htdocs/man/includes/form.inc on line 766.

Digging into form.inc, the scheduler validate function was being added to the array in an unexpected manner.

Array ( [0] => node_form_validate [_scheduler_form_validate] => Array ( ) )

Attached patch adds it in the expected manner.

Array ( [0] => node_form_validate [1] => _scheduler_form_validate )

AttachmentSize
form_validater_scheduler.patch919 bytes

#1

yang_yi_cn - October 31, 2008 - 21:14

+1 for that.

#2

Eric Schaefer - November 1, 2008 - 19:46
Status:needs review» fixed

http://drupal.org/cvs?commit=150443

Thanks Greg!

#3

Eric Schaefer - November 2, 2008 - 20:36

The registration of the validation function is superfluous since the function is long gone... (validation is done via hook_nodeapi('validate')).
http://drupal.org/cvs?commit=150605

#4

Eric Schaefer - November 4, 2008 - 17:46

Fixed in 6.x-1.3

#5

System Message - November 18, 2008 - 18:01
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.