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 { ...@@ -247,28 +247,28 @@ class ZoneTerritory extends FormElement {
$checkbox_path .= '[' . implode('][', $checkbox_parents) . ']'; $checkbox_path .= '[' . implode('][', $checkbox_parents) . ']';
$element['included_postal_codes'] = [ $element['included_postal_codes'] = [
'#type' => 'textfield', '#type' => 'textarea',
'#title' => t('Included postal codes'), '#title' => t('Included postal codes'),
'#description' => t('A regular expression ("/(35|38)[0-9]{3}/") or comma-separated list, including ranges ("98, 100:200")'), '#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'], '#default_value' => $value['included_postal_codes'],
'#rows' => 1,
'#states' => [ '#states' => [
'visible' => [ 'visible' => [
':input[name="' . $checkbox_path . '"]' => ['checked' => TRUE], ':input[name="' . $checkbox_path . '"]' => ['checked' => TRUE],
], ],
], ],
'#size' => 35,
]; ];
$element['excluded_postal_codes'] = [ $element['excluded_postal_codes'] = [
'#type' => 'textfield', '#type' => 'textarea',
'#title' => t('Excluded postal codes'), '#title' => t('Excluded postal codes'),
'#description' => t('A regular expression ("/(35|38)[0-9]{3}/") or comma-separated list, including ranges ("98, 100:200")'), '#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'], '#default_value' => $value['excluded_postal_codes'],
'#rows' => 1,
'#states' => [ '#states' => [
'visible' => [ 'visible' => [
':input[name="' . $checkbox_path . '"]' => ['checked' => TRUE], ':input[name="' . $checkbox_path . '"]' => ['checked' => TRUE],
], ],
], ],
'#size' => 35,
]; ];
return $element; 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