| Age | Commit message (Collapse) | Author | Files | Lines |
|
Removed from the legacy edit_contact.tpl; placed at the top of the
Liberty Extensions tab in edit.tpl, gated on p_contact_admin, using
the same plain form-group style as surrounding fields.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
contact.role_id stores the user_id of the linked registered user (NULL = no
account). load() joins users_users on role_id to expose linked_user_login and
linked_user_name. verify() accepts user_id from the edit form and writes it to
contact_store['role_id']. getList() now filters by user_id key (was role_id).
Edit form shows the user_id field to admins with current login shown inline;
display template shows the linked user when set.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Splits the Contact class into ContactPerson (content_type_guid='contactperson')
and ContactBusiness (content_type_guid='contactbusiness'), each using 'contact'
as the shared package-level xref schema. Replaces the $isPerson/$00 xref hack
with proper class identity via instanceof.
- ContactPerson.php, ContactBusiness.php: new subclasses
- Contact.php: loadXrefTypeList() reads type tags directly from liberty_xref;
getAvailableTypeItems() for edit form (schema-driven with pre-upgrade fallback);
getDisplayUrl() now points to display_contact.php
- Type item codes: P01/P02 (person), B01-B04 (business, B01=Service new)
- list_people.php, list_businesses.php: separate list pages per type
- list_contacts.php: combined display-layer merge of both types
- 5.0.3.php: upgrade script migrating existing data to new content types and codes
- Templates: isPerson flag from instanceof; horizontal type checkboxes; list.tpl
accepts $listTitle; menu adds People/Businesses entries
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
display_contact.php: replace getXrefGroupList() with loadXrefInfo()
and assign gXrefInfo to Smarty.
display_contact.tpl: replace old $source loop with xrefGroup foreach.
view_xref_contact_group.tpl: remove fixed column widths.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
This template was unreachable — getXrefListTemplate() resolves
only to liberty/list_xref.tpl as the generic fallback, never
to contact/list_xref.tpl.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Replaces broken remove_contact.php link with edit.php?expunge=1 pattern,
consistent with other edit pages.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
other group templates
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Replace contact_xref_groups/getXrefGroupList() with loadXrefInfo() +
gXrefInfo; edit.tpl uses {foreach $gXrefInfo->mGroups}.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- view_xref_address_item.tpl, view_xref_phone_item.tpl: remove
second column
- view_xref_contact_group.tpl: add 30/30/40% widths to Type/Value/Note
- view_xref_text_item.tpl, list_xref_generic.tpl: deleted — fall through
to liberty equivalents
- ImportContactCSV.php: set xorder explicitly (#P/#F → 1, others → 0)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
p_remove_contact was never in the schema; three templates were silently
hiding delete actions for all users. Now correctly gates on p_contact_expunge.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
view-list: List Contacts; contact-new-symbolic: Add Person;
address-book-new-symbolic: Add Business; task-add: Log a Call
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
user-trash updated to a proper dustbin SVG. All templates across
all packages updated to use user-trash instead of edit-delete.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Replace all {booticon iname="icon-*"} and {booticon iname="fa-*"} calls with
{biticon ipackage="icons" iname="<freedesktop-name>"} using the tango iconset.
Mapping covers ~70 distinct old names to tango equivalents (edit-delete,
document-properties, go-next, lock, internet-mail, etc.).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Second row had 5 columns (including dead \$item.* references and
DOB/NI fields not relevant here). Collapsed to colspan=2 with
just refs/tasks/addresses. Dead \$item.display_link and content
type cells removed.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
list_contacts.php: modern replacement with clean code, no dead session
logic, referencing list.tpl.
list.php: now a thin redirect for backward compatibility.
list.tpl: alternate odd/even class on each contact's row pair.
All internal references (display_contact, index, load_emails, menu,
admin_xref_types) updated to list_contacts.php.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- add_person.php + add_person.tpl: minimal form, auto-injects $00
- add_business.php + add_business.tpl: org name + $02+ type checkboxes
- menu_contact.tpl: replace generic edit link with Add Person / Add Business
- Contact.php: fix title overwrite (org no longer clobbers person name);
fix null trim on organisation; fix $00 type xref stored correctly
- edit.php: isPerson flag; xref groups loaded; type list filtered $02+ for businesses
- edit.tpl: person/business field visibility; tabbed xref block at bottom of Details tab
- edit_type_header.tpl: value fixed to {$type.item}; $00/$01 filtered out
- display_contact.tpl: person/business field selection; note above addresses;
no-addresses fallback removed; allow_edit=false on xref tabs
- display_type_header.tpl: heading Personal/Business Contact; $02+ types only
- contact_date_bar.tpl: remove Add crossref shortcut (now in edit tabs)
- view_xref_*_item.tpl: dates and edit actions gated on $xrefAllowEdit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
edit_type_header.tpl: value was {$type.source} (unquoted, wrong field)
— changed to "{$type.item}" so $04 etc are submitted correctly.
Label corrected from "Content Types" to "Contact Types".
Contact.php: organisation trim() now handles null from DB.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- Rename all view_xref_*_record.tpl → view_xref_*_item.tpl to match
liberty naming convention
- list_xref_generic.tpl: use getXrefRecordTemplate() with {assign} pattern
instead of hardcoded bitpackage:contact/_record.tpl path
- Remove edit_xref_key_seal.tpl and view_xref_key_seal_record.tpl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- Remove domestic/business contract list links (list_contracts.php gone)
- Remove Admin contacts entry (already on kernel admin tree)
- Replace Log a callout with Log a call linked to display_contact#addcomment
- Add Create an Order as holding link gated on isPackageActive('order')
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
- Fix LOCALTIMESTAMP default in contact_address (CURRENT_TIMESTAMP caused
timezone error with Firebird 4+ / PDO session having no timezone set)
- Add xref_id sequence call to all liberty_xref INSERTs in Contact::store()
- Add CONTACT_PKG_CLASS_PATH so getLibertyObject resolves Contact class
- Fix LibertyXref date fields: format Unix timestamps as Y-m-d H:i:s before
INSERT; use null instead of empty string for nullable TIMESTAMP columns
- Remove Contract/Key Number column from list and edit templates
- Remove find_key search box and getContractList() method
- Remove alarm and council xref groups and items from schema seed
- Add SCREF (Stock Source Reference) to links xref group seed
- Archive and git-remove Cotswold-specific templates and list_contracts.php
- Clean up contact_header: remove xkey prefix, restore plain title display
- Browser title now shows contact name instead of generic "Contact Information"
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
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>
|
|
Removes dependency on contact-specific list_xref_generic.tpl;
xref tabs are now rendered by bitpackage:liberty/list_xref.tpl
which is usable across all packages.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
filter
getContactGroupList() now adds xref_type AS source so templates can key
into mInfo by the text group name (e.g. 'contact', 'links'). display_contact.tpl
passes sort_order (integer) to add_xref.php instead of the text xref_type key
so getXrefTypeList() group filter works correctly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
ContactXref and ContactXrefType become thin subclasses of their liberty
counterparts, scoped to content_type_guid='contact'. load_emails.php updated
to query liberty_xref. Gallery view template moved into contact package as
fisheye_fixed_grid_contact.tpl (keeps fisheye clean; same pattern for future
assembly/component packages). contact/admin/upgrades/5.0.1.php migrates
existing contact_xref_* data into liberty_xref_* tables.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
|
templates and related to mistake in processing {2} elements that should use curly brackets and not revert to square ones.
|
|
|
|
|
|
|
|
This may need same treatment as fisheye gallery selection
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Add was failing because we did not pass the data properly
|