mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
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:
parent
bbe8cbb49a
commit
f569ead1a5
@ -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}
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user