Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.1] Replace deprecated substr() with substring() #42726

Merged
merged 6 commits into from
Feb 27, 2024

Conversation

C-Lodder
Copy link
Member

Summary of Changes

Javascript's substr() method has been deprecated for ages now (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) and this PR replaces it with substring()

Testing Instructions

  1. Inline Help should still work as expected.
  2. Add a simple colour field to any XML file (<field name="foo" type="color" label="Test" control="simple" />) and ensure the field works as expected.
  3. Ensure toggling the TineMCE presets within the Plugin Manager still works as expected.

I was unable to test the calendar changes as the code has no comments to assist developers, so this might need to be a code review instead.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester PR-5.1-dev labels Jan 29, 2024
@LadySolveig LadySolveig added this to the Joomla! 5.1.0 milestone Feb 2, 2024
@Hackwar Hackwar added the PBF Pizza, Bugs and Fun label Feb 20, 2024
@ceford
Copy link
Contributor

ceford commented Feb 23, 2024

I have tested this item ✅ successfully on a68b18a

All checked - calendar field in Article edit worked normally.


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

@steffans
Copy link

I have tested this item ✅ successfully on a68b18a


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

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on a68b18a


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

@joomla-cms-bot joomla-cms-bot removed this from the Joomla! 5.1.0 milestone Feb 24, 2024
@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 24, 2024
@exlemor
Copy link

exlemor commented Feb 24, 2024

I have not tested this item.

Not testable...

Using Download / Details at the bottom of the Patch page,
https://artifacts.joomla.org/drone/joomla/joomla-cms/5.1-dev/42726/downloads/73221 you receive an error message:

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


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

@richard67
Copy link
Member

@exlemor Possibly the downloads are not available anymore because some time after a PR has been updated last time, the downloads are deleted. As the PR already has 2 good tests I have set it to RTC (ready to commit), so it doesn't need any more tests. But I will trigger a new build of the testing packages now by updating the branch so a bit later new downloads will be available.

@LadySolveig LadySolveig added this to the Joomla! 5.1.0 milestone Feb 26, 2024
@LadySolveig LadySolveig merged commit 28ed990 into joomla:5.1-dev Feb 27, 2024
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 27, 2024
@LadySolveig
Copy link
Contributor

Thank you @C-Lodder and also to the testers @ceford @steffans and @viocassel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Language Change This is for Translators NPM Resource Changed This Pull Request can't be tested by Patchtester PBF Pizza, Bugs and Fun PR-5.1-dev
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants