mvc: BooleanField defaults to 0 on creation, this will not change any empty node, just changes how these are being created for the first time.

This commit is contained in:
Ad Schellevis 2025-03-04 11:22:19 +01:00
parent bbe8cbb49a
commit f569ead1a5

View File

@ -1,7 +1,7 @@
<?php
/*
* Copyright (C) 2015 Deciso B.V.
* Copyright (C) 2015-2025 Deciso B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -41,6 +41,12 @@ class BooleanField extends BaseField
*/
protected $internalIsContainer = false;
/**
* @var string force default to 0 when unspecified
*/
protected $internalDefaultValue = "0";
protected $internalValue = "0";
/**
* {@inheritdoc}
*/