Path Auto throws an error on node submit if it contains no datefield...

dopry - April 26, 2008 - 05:59
Project:Date
Version:5.x-2.0-rc
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

It complains about the second arg to format date... see attached patch which checks if the node has a date field before even trying to load data from it...

You could probably drop the top half of that function and just have the foreach(content_field() as $field) since it looks like this... see example second patch attached that should perform a better job at the gig, but I dont' have time to test it currenlty.

AttachmentSize
date.pathauto.patch967 bytes
date.pathauto_wtf.patch1.76 KB

#1

KarenS - June 18, 2008 - 13:03
Status:active» fixed

I'm going to go with the first patch since I can't see how the second one would work and you didn't test it. Thanks!

#2

Anonymous (not verified) - July 2, 2008 - 13:13
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.