1
mariuss
WF-Section 2.92 overwrites publish date on article modify
  • 2008/3/22 0:56

  • mariuss

  • Just popping in

  • Posts: 99

  • Since: 2002/9/6 5


Every time you edit an existing article in WF-Section 2.92 the published date will be overwritten and forced to the current date. Older versions of this module had the exact same issue.

To fix:
- admin/index.php
- case $op is 'save', 'Save'
- publishdate parameter is read from _POST, if not present defaults to time()
- three lines below call to setPublished
- comment out these two lines, there is no such parameter in the form posting to this controller
- also, expiredate is not set properly, check is fine, but then publishdate is read from _POST (instead of expiredate)
......

Login

Who's Online

195 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 195


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits