Commit 57bee306 authored by git's avatar git Committed by bojanz
Browse files

Issue #2935002 by smartparty: Increase field length "Limit by Postal Code"

parent f965e896
......@@ -247,28 +247,28 @@ class ZoneTerritory extends FormElement {
$checkbox_path .= '[' . implode('][', $checkbox_parents) . ']';
$element['included_postal_codes'] = [
'#type' => 'textfield',
'#type' => 'textarea',
'#title' => t('Included postal codes'),
'#description' => t('A regular expression ("/(35|38)[0-9]{3}/") or comma-separated list, including ranges ("98, 100:200")'),
'#default_value' => $value['included_postal_codes'],
'#rows' => 1,
'#states' => [
'visible' => [
':input[name="' . $checkbox_path . '"]' => ['checked' => TRUE],
],
],
'#size' => 35,
];
$element['excluded_postal_codes'] = [
'#type' => 'textfield',
'#type' => 'textarea',
'#title' => t('Excluded postal codes'),
'#description' => t('A regular expression ("/(35|38)[0-9]{3}/") or comma-separated list, including ranges ("98, 100:200")'),
'#default_value' => $value['excluded_postal_codes'],
'#rows' => 1,
'#states' => [
'visible' => [
':input[name="' . $checkbox_path . '"]' => ['checked' => TRUE],
],
],
'#size' => 35,
];
return $element;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment