summaryrefslogtreecommitdiffstats
path: root/core/modules/node/src/Entity/Node.php
diff options
context:
space:
mode:
authorAlex Pott2015-01-02 21:39:42 +0000
committerAlex Pott2015-01-02 21:39:42 +0000
commit057b0cabafde660cea2396b460ba4380c3a40d9c (patch)
tree4264f8b70d4f238506021867be8947d6d224dbea /core/modules/node/src/Entity/Node.php
parentfb4f25aac7982fcda1477e59f67759ff05ccdf94 (diff)
Issue #2232477 by plach, yched, tstoeckler, amateescu: Fatal when adding new fields with NOT NULL constraints in a base table that contains existing entities
Diffstat (limited to 'core/modules/node/src/Entity/Node.php')
-rw-r--r--core/modules/node/src/Entity/Node.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index 4a6d74b..ff4f376 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -452,6 +452,7 @@ class Node extends ContentEntityBase implements NodeInterface {
->setDescription(t('A boolean indicating whether the node should be displayed at the top of lists in which it appears.'))
->setRevisionable(TRUE)
->setTranslatable(TRUE)
+ ->setDefaultValue(FALSE)
->setDisplayOptions('form', array(
'type' => 'boolean_checkbox',
'settings' => array(