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

Set name after parent construct #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Set name after parent construct #116

wants to merge 1 commit into from

Conversation

RVXD
Copy link

@RVXD RVXD commented Aug 15, 2023

In php8.1 version of Silverstripe Framework 4.12.7 'name' falls back to autogenerated name from 'title'. This results in name 'Focuspoint' instead of 'FocusPoint'. Result is that the db field is not found, causing an error in asset browser. If name is set after the construct call the issue this is solved.

In 8.1 version of Silverstripe 'name' falls back to autogenerated name from 'title'. This results in name 'Focuspoint' instead of 'FocusPoint'. Result is that the db field is not found, causing an error in asset browser. If name is set after the construct call the issue is solved.
@jonom
Copy link
Owner

jonom commented Sep 26, 2023

Hi @RVXD, sorry for the slow reply. I wasn't able to replicate this issue on SS4 (focuspoint 4.0.5) or SS5 (focuspoint 5.0.0) with PHP 8.1. Is this still a problem for you if you update to the latest version of SS4?

@jonom
Copy link
Owner

jonom commented Sep 26, 2023

p.s. part of the reason for pushing back is that making a change to the master branch won't help you if you are using SS4, as the master branch is targeting SS5.

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