Default value for new Site attribute not set for existing sites
Reproduce
- Create a new Site of a specific type
- Add a new
<attribute>
in thesite.xml
of the chosen Site type with a default value
- e.g.
<attribute default="1">my.bool.test.var</attribute>
- Execute a system setup
Expected behavior
The existing site should automatically have the default value when doing $Site->getAttribute('my.bool.test.var')
(true
in this case).
The Site panel should show the default value in the settings (i.e. a checked checkbox).
Actual behaviour
$Site->getAttribute('my.bool.test.var')
returns false
.
The Site panel shows a unchecked checkbox.