Bug #17298
closedFrontend preview and simulate time is buggy
0%
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
Updated by Michael Stucki over 17 years ago
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)...
Updated by Andreas Kiessling almost 17 years ago
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?
Updated by Martin Holtz over 16 years ago
seems to be an duplicate bug of #7320 too
Updated by Ralf Hettinger over 16 years ago
Any chance of getting this into 4.2?
Would really make a new setup much easier ;)
Updated by Ralf Hettinger over 16 years ago
Any objections against putting this to the core list for 4.2.1?
Updated by Sven Weiss about 16 years ago
Isn't in 4.2.2 and not in the actual trunk of v4.
Can someone apply this for the next release / tag?
Updated by Sebastian Verweyen about 16 years ago
When will it make it's way into a release build?
Updated by Ralf Hettinger about 16 years ago
"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.