Skip to content

Set name after parent construct#116

Open
RVXD wants to merge 1 commit intojonom:masterfrom
RVXD:master-1
Open

Set name after parent construct#116
RVXD wants to merge 1 commit intojonom:masterfrom
RVXD:master-1

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