From 0fc464eb48100bc531e0ab64865d7bf16c977423 Mon Sep 17 00:00:00 2001 From: patrick Date: Sun, 2 Feb 2025 03:09:59 +0000 Subject: [PATCH] Initial implementation of AddressComplete --- common.inc.php | 2 ++ user_personal.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/common.inc.php b/common.inc.php index ea1acf98..4c2f5a68 100644 --- a/common.inc.php +++ b/common.inc.php @@ -369,6 +369,7 @@ function send_header($title = '', $nav = null, $icon = null, $titletranslated = + @@ -683,6 +684,7 @@ function send_header($title = '', $nav = null, $icon = null, $titletranslated = + diff --git a/user_personal.php b/user_personal.php index 86491ded..3a009047 100644 --- a/user_personal.php +++ b/user_personal.php @@ -63,7 +63,7 @@ $user_personal_fields = array( 'fax' => array('name' => 'Fax', 'regexp' => '/^[1-9][0-9]{2}-?[1-9][0-9]{2}-?[0-9]{4}$/', 'format' => "'NNN-NNN-NNNN' OR 'NNNNNNNNNN'"), - 'postalcode' => array('name' => $config['postalzip'], + 'postalcode' => array('id' => $config['postalzip'], 'name' => $config['postalzip'], 'regexp' => '/^(([A-Z][0-9][A-Z]( )?[0-9][A-Z][0-9])|([0-9]{5}))$/i', 'format' => "'ANA NAN' or 'ANANAN' or 'NNNNN'"), ); @@ -242,7 +242,7 @@ function item($user, $fname, $subtext = '') echo " $req"; break; default: - echo "$req"; + echo "$req"; break; } echo '';