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

Find::parent(): fix for file with files parent #5308

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

distantnative
Copy link
Member

@distantnative distantnative commented Jun 18, 2023

This PR …

Exploding the path at /files/ separator created issues when that segment was multiple times present (due to page's name). Added a regular expression that splits the string only at the last occurrence of /files/.

Fixes

Ready?

  • Unit tests for fixed bug/feature
  • In-code documentation (wherever needed)
  • Tests and checks all pass

For review team

@distantnative distantnative added this to the 3.9.6 milestone Jun 18, 2023
@distantnative distantnative requested a review from a team June 18, 2023 17:24
@distantnative distantnative self-assigned this Jun 18, 2023
@distantnative distantnative linked an issue Jun 18, 2023 that may be closed by this pull request
@distantnative distantnative force-pushed the fix/5273-find-parent-files-path branch from 7fee945 to 0f559dd Compare June 18, 2023 17:25
tests/Cms/FindTest.php Outdated Show resolved Hide resolved
@distantnative distantnative force-pushed the fix/5273-find-parent-files-path branch from 0f559dd to 4e677f7 Compare June 18, 2023 18:05
@bastianallgeier bastianallgeier merged commit 014a8c8 into develop Jun 19, 2023
@bastianallgeier bastianallgeier deleted the fix/5273-find-parent-files-path branch June 19, 2023 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Editing of File contents not possible when page name is "files"
2 participants