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

IBX-183: Fixed accessing Tabs with spaces and special characters #1737

Merged
merged 2 commits into from
Apr 16, 2021

Conversation

konradoboza
Copy link
Member

@konradoboza konradoboza commented Apr 15, 2021

Question Answer
Tickets IBX-183
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? yes
Doc needed? no
License GPL-2.0

Tab ids coming from custom category names containing spaces make tabs inaccessible. The idea is to sanitize them by replacing spaces with hyphens to match current item- notation.

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@konradoboza konradoboza removed their assignment Apr 15, 2021
@mateuszbieniek
Copy link
Contributor

mateuszbieniek commented Apr 15, 2021

Can we expect other special chars than space to blow up? I dunno, :, #, ;?

@konradoboza
Copy link
Member Author

Indeed, the error remains for values like: user_data: 'Some;User#Data'. The Twig slug filter seems to handle such cases much better.

@alongosz alongosz changed the title IBX-183: Tabs having key with spaces are inaccessible IBX-183: Fixed accessing Tabs with spaces and special characters Apr 15, 2021
Copy link
Member

@alongosz alongosz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@konradoboza PR title should summarize the essence of the changes for the current context (package), formed in past simple. Fixed that for you.

@konradoboza
Copy link
Member Author

Your kindness is beyond my imagination @alongosz, much appreciated. 😄

@bogusez bogusez self-assigned this Apr 15, 2021
@bogusez
Copy link
Contributor

bogusez commented Apr 16, 2021

Screenshot 2021-04-16 at 09 17 57

Works good now.

@lserwatka lserwatka merged commit b2d6202 into 2.2 Apr 16, 2021
@lserwatka lserwatka deleted the ibx-183-category-tab-identifiers branch April 16, 2021 08:12
@lserwatka
Copy link
Member

Could you merge it up?

@konradoboza
Copy link
Member Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
8 participants