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 |
Jump to:
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 )
| Attachment | Size |
|---|---|
| form_validater_scheduler.patch | 919 bytes |

#1
+1 for that.
#2
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
Automatically closed -- issue fixed for two weeks with no activity.