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

FIX Don't split ID into separate digits #335

Merged

Conversation

GuySartorelli
Copy link
Member

The bug is only seen when you have multi-digit IDs. For some reason the ID was coming through as a string, so it didn't get transformed into an array, so we ended up iterating over the string and therefore requesting info for each digit.

Issue

Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

Tested locally, things seem to work correctly, at least in terms of fixing this bug which I was able to replicate.

Note that after inline publishing the block doesn't update its versioned badge to show published, though given that's a separate issue we can merge this as is

@emteknetnz emteknetnz merged commit 2ca8c0a into silverstripe:4.0 Sep 11, 2024
15 checks passed
@emteknetnz emteknetnz deleted the pulls/4.0/always-ids-is-array branch September 11, 2024 00:31
@GuySartorelli
Copy link
Member Author

The versioned badge issue was raised as a regression for 5.2.0: #256

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.

2 participants