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

[4.4] Prevent step target to be recorded with empty spaces and prevent tour run fails #43039

Open
wants to merge 4 commits into
base: 4.4-dev
Choose a base branch
from

Conversation

obuisard
Copy link
Contributor

Summary of Changes

The step target is trimmed to avoid javascript errors and preventing a tour to start (with an error message that does not really explain what was wrong)

Testing Instructions

Edit a tour step and edit the target, adding spaces before and after the content of the field.
Run the tour you have edited the step from.
The tour MAY fail (depending on the browser/system used). It failed on Safari.
Apply the patch.
Edit the target field for the step (so it can be saved). Once saved, the step target field should not contain any space.

Actual result BEFORE applying this Pull Request

The tour may not start (an error message is shown when you start the tour).

Expected result AFTER applying this Pull Request

The tour runs.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Trim the target to avoid javascript errors preventing a tour to start
@exlemor
Copy link

exlemor commented Apr 21, 2024

@obuisard

Tested this under Joomla 4.4.4 and under Safari v17.4.1 (19618.1.15.11.14) on Mac OS Sonoma 14.4.1 and I could not have it fail. [I have checked that there is a space before and after the field].

Sorry.

@obuisard
Copy link
Contributor Author

@obuisard

Tested this under Joomla 4.4.4 and under Safari v17.4.1 (19618.1.15.11.14) on Mac OS Sonoma 14.4.1 and I could not have it fail. [I have checked that there is a space before and after the field].

Sorry.

Thank you, Emmanuel @exlemor

@HLeithner HLeithner added the bug label Apr 24, 2024
@HLeithner HLeithner changed the title [4.4] Prevent step target to be recorded with empty spaces and prevent tour run fails [4.4] Prevent step target to be recorded with empty spaces and prevent tour run fails Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants