1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 05:21:29 +02:00

Add PR #133 - use better non-technical message for SelectableOptionConfig

This commit is contained in:
jmartsch
2021-05-07 14:30:02 -04:00
committed by Ryan Cramer
parent 1bd35d212a
commit 451455e035

View File

@@ -217,9 +217,9 @@ class SelectableOptionConfig extends Wire {
if($f instanceof InputfieldHasArrayValue && !is_array($initValue) && !empty($initValue)) $initValue = explode(' ', $initValue);
$f->attr('value', $initValue);
if(!$field->required && !$field->requiredIf) {
$f->notes = $this->_('Please note: your selections here do not become active unless a value is *always* required for this field. See the "required" option on the Input tab of your field settings.');
$f->notes = $this->_('Please note: Your pre-selection is not active, as this field is not a required field. Activate the option “required” in the input tab of the field.');
} else {
$f->notes = $this->_('This feature is active since a value is always required.');
$f->notes = $this->_('The pre-selection is active because this field is a required field.');
}
$inputfields->add($f);
$inputfields->add($this->getInstructions());