Bug #17298
closed
Frontend preview and simulate time is buggy
Added by Michael Stucki over 17 years ago.
Updated over 14 years ago.
Description
It seems like preview time is not respected correctly. As soon as it is set, all content is displayed disregarding any start- and enddates.
How to reproduce:
Edit a page and add some content with a startdate in the future.
Next, open the admin panel and simulate a date which is earlier than the startdate set above. The content will always appear disregarding of the setting.
(issue imported from #M5611)
Files
It seems like sys_page->versioningPreview is set as soon as $TSFE->fePreview is true. However, fePreview is not the same like a versioning preview. Therefore, the check must be changed.
I'm not sure how to assure if we are in versioningPreview mode, but I assume that one of these needs to be set:
- t3lib_div::_GP('ADMCMD_view')
- intval($TSFE->workspacePreview)
That should also cover any versioning preview links (ADMCMD_prev)...
Does work for me. Thank you.
I just encountered this error in current 4.1.5 and was able to fix it with this patch. So this patch wasn't implemented in 4.1.5?
seems to be an duplicate bug of #7320 too
Any chance of getting this into 4.2?
Would really make a new setup much easier ;)
Any objections against putting this to the core list for 4.2.1?
Isn't in 4.2.2 and not in the actual trunk of v4.
Can someone apply this for the next release / tag?
When will it make it's way into a release build?
"When will it make it's way into a release build?"
That's what I'm wondering myself, so I submitted patches against the current svn branches to the core list.
Fixed in TYPO3 4.2.3 and later.
Also available in: Atom
PDF