Download & Extend

When user tries to extend expired node, its expiration time is calculated starting from expiration date, but not from now.

Project:Auto Expire
Version:6.x-1.0-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:marcvangend
Status:closed (fixed)

Issue Summary

When user tries to extend expired node, its expiration time is calculated starting from expiration date, but not from current date.

For example:
If my expiration period is 2 days and node expired 5 days ago, I have to extend it minimum 3 times to return it into not expired state.

It would be good if expiration time be calculated with offset from current date.

Comments

#1

Assigned to:Anonymous» mariuss

#2

Status:active» needs review

Node expiration date is calculating from current date now.

AttachmentSize
auto_expire-237450-2.patch 736 bytes

#3

Assigned to:mariuss» marcvangend
Status:needs review» postponed

I agree, the new expiry date of an expired nodes should be calculated as now + $days. However I think that nodes that have not yet expired, should still be calculated as expire + $days, otherwise, the user 'loses' a couple of days when he extends before the expiry date. I intend to implement this behavior in the upcoming D6 version.

#4

subscribe.

Also when will the drupal version 6 be ready?

#5

Status:postponed» reviewed & tested by the community

patch tested...looks good to be committed to version 5 at least.

#6

Status:reviewed & tested by the community» patch (to be ported)

Committed to the Drupal5 branch, still to be ported to D6.

#7

Version:5.x-1.0» 6.x-1.0-rc1
Status:patch (to be ported)» fixed

included 6.x-1.0-rc1.

#8

Status:fixed» closed (fixed)

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

nobody click here