1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00
This commit is contained in:
Ryan Cramer
2021-08-13 14:26:31 -04:00
parent b606349c08
commit 035e947a5a

View File

@@ -223,7 +223,7 @@ class FieldtypeInteger extends Fieldtype {
$f = $this->wire()->modules->get('InputfieldInteger');
$f->attr('name', 'defaultValue');
$f->label = $this->_('Default value');
$f->description = $this->_('This value is assigned as the default for this field on newly created pages. It does not affect existing pages.');
$f->description = $this->_('This value is assigned as the default for this field on pages with no value entered.');
$f->collapsed = Inputfield::collapsedBlank;
$f->attr('value', strlen($field->get('defaultValue')) ? (int) $field->get('defaultValue') : '');
$inputfields->add($f);