diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-26 14:51:23 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-26 14:51:23 +0100 |
| commit | 620f081325c4e181a011781b5e72d251079b4271 (patch) | |
| tree | ce8ad2c6c0c0e2bca9585454eb61a68b2b05fbb0 /add_xref_address.php | |
| parent | 3ce59b8686582a514406b1a57574e846ce83a7c1 (diff) | |
| download | contact-620f081325c4e181a011781b5e72d251079b4271.tar.gz contact-620f081325c4e181a011781b5e72d251079b4271.tar.bz2 contact-620f081325c4e181a011781b5e72d251079b4271.zip | |
Migrate contact xref to liberty_xref tables; add address_postcode to schema
5.0.1 upgrade migrates contact_xref_type/source/xref data into
liberty_xref_group/item/xref with content_type_guid='contact'.
5.0.2 upgrade drops the old contact_xref* tables.
schema_inc.php updated for fresh installs:
- Removes contact_xref, contact_xref_source, contact_xref_type tables
- Adds address_postcode table (UK postcode lookup, LEFT JOIN'd in queries)
- Defaults now INSERT into liberty_xref_group and liberty_xref_item directly
- dependencies => 'liberty' ensures correct install ordering
PHP and templates: source→item, xref_type→group rename throughout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'add_xref_address.php')
| -rwxr-xr-x | add_xref_address.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_xref_address.php b/add_xref_address.php index bc9e471..0ea548d 100755 --- a/add_xref_address.php +++ b/add_xref_address.php @@ -36,13 +36,13 @@ if (isset($_REQUEST["fCancel"])) { } } -$_REQUEST['xref_type'] = 10; +$_REQUEST['group'] = 10; // formInfo might be set due to a error on submit if( empty( $xrefInfo ) ) { $xrefInfo = &$gContent->mInfo['xref_store']; $xrefInfo['content_id'] = $gContent->mContentId; - $xrefInfo['xref_type'] = $_REQUEST['xref_type']; + $xrefInfo['group'] = $_REQUEST['group']; } $xrefInfo['xref_type_list'] = $gContent->getXrefTypeList( 0, 'address' ); // Don't use ckeditor for text fields ' |
