Skip to content

[4.0] Fix history version preview#29692

Merged
wilsonge merged 1 commit intojoomla:4.0-devfrom
SharkyKZ:j4/error/history-preview
Jun 19, 2020
Merged

[4.0] Fix history version preview#29692
wilsonge merged 1 commit intojoomla:4.0-devfrom
SharkyKZ:j4/error/history-preview

Conversation

@SharkyKZ
Copy link
Copy Markdown
Contributor

@SharkyKZ SharkyKZ commented Jun 18, 2020

Fixes #29654.

Summary of Changes

Corrects class casing, fixing version preview on case sensitive filesystems.

Testing Instructions

Create and edit an article.
Click Versions button.
Select a version and click Preview.

Expected result

Preview displayed.

Actual result

Call to a member function load() on bool

Documentation Changes Required

No.

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@SharkyKZ
Copy link
Copy Markdown
Contributor Author

Those using JTable prefix are case insensitive. So they're fine for now.

@PhilETaylor

This comment was marked as abuse.

@ChristineWk
Copy link
Copy Markdown

I have tested this item ✅ successfully on 896a8db


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29692.

@ChristineWk
Copy link
Copy Markdown

Confirm Actual Result before Patch.
@PhilETaylor With Patch: No message shown.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29692.

@PhilETaylor

This comment was marked as abuse.

@particthistle
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 896a8db

- Specific expected result for the issue tested successfully and preview of version was displayed.

  • Confirmed that if URL @PhilETaylor prescribes is used, then there's still an offset error. However, why would someone want to manually fake a URL with no version ID value supplied - that would imply they know what the URL is trying to achieve, and that they would be expecting failure.

Not sure what the suggested solution should be there on that URL being used with no parameter? As it loads in a modal, should a direct access outside the modal trigger a die();?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29692.

@PhilETaylor

This comment was marked as abuse.

@particthistle
Copy link
Copy Markdown
Member

@PhilETaylor agree with the principle. And that it's hard than it sounds.

Code to suggest for this one escapes me at the second, and not just as it's 4am in Australia.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29692.

@PhilETaylor

This comment was marked as abuse.

@richard67
Copy link
Copy Markdown
Member

I have tested this item ✅ successfully on 896a8db

3rd test is never bad ;-)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29692.

@richard67
Copy link
Copy Markdown
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29692.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jun 18, 2020
@wilsonge wilsonge merged commit 5c9dc94 into joomla:4.0-dev Jun 19, 2020
@wilsonge
Copy link
Copy Markdown
Contributor

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jun 19, 2020
@wilsonge wilsonge added this to the Joomla 4.0 milestone Jun 19, 2020
sakiss pushed a commit to sakiss/joomla-cms that referenced this pull request Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants