Download & Extend

scheduler validate function not actually getting called/working

Project:Scheduler
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

Comments

#1

+1 for that.

#2

Status:needs review» fixed

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

Thanks Greg!

#3

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

Fixed in 6.x-1.3

#5

Status:fixed» closed (fixed)

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

nobody click here