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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| date.pathauto.patch | 967 bytes |
| date.pathauto_wtf.patch | 1.76 KB |

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