silverstripe-focuspoint icon indicating copy to clipboard operation
silverstripe-focuspoint copied to clipboard

Set name after parent construct

Open RVXD opened this issue 2 years ago • 2 comments

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.

RVXD avatar Aug 15 '23 13:08 RVXD

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 avatar Sep 26 '23 20:09 jonom

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.

jonom avatar Sep 26 '23 20:09 jonom