Thanks for this module!
Is this really necessary?
&& $row['status'] == 1
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | remove_obsolete_code-853976-6.patch | 790 bytes | jstoller |
Thanks for this module!
Is this really necessary?
&& $row['status'] == 1
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | remove_obsolete_code-853976-6.patch | 790 bytes | jstoller |
Comments
Comment #1
soulfroysIs this path ok?
Comment #2
dgtlmoon commentedI think we still need the && $row['status'] == 1 as this means $node->published_at is only set if the node is published.
maybe it can be simplified as the following, saving the SQL query?
what do you think? see patch..
Comment #3
dgtlmoon commentedComment #4
soulfroysSorry for the long-delayed response... :(
What do you think about this?
Comment #5
samerali commented#2 number makes sense to me.
I see why #4 soulfroys wants to take away status=1 (i'm on the same position) but this will affect on data integrity.
Your custom code should handle if ->published_at is empty then use ->created, @ templates and/or views.
Comment #6
jstollerJust cleaning up the issue queue and couldn't leave this alone.
As noted in #2355633: Obsolete code in hook_node_load for the D7 branch, that entire chunk of code was made obsolete by the install function added in #561754: Empty pub dates break view sort order. The attached patch removes it.
Comment #8
jstollerI don't have any plans to create another release for D6, but I've committed this to dev, just to get the bug off the books.
Just in case it comes up, I agree with @sameronline in #5. Replacing published_at with created when it's empty is a decision that should be made by a site's developer and not decreed by this module. Adding that capability would be a significant new feature and not one I personally intend to develop.