Download & Extend

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

Project:Date
Version:5.x-2.0-rc
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSizeStatusTest resultOperations
date.pathauto.patch967 bytesIgnored: Check issue status.NoneNone
date.pathauto_wtf.patch1.76 KBIgnored: Check issue status.NoneNone

Comments

#1

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

Status:fixed» closed (fixed)

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

nobody click here