diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-29 13:57:26 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-29 13:57:26 +0100 |
| commit | 3d94c3dfe203edeb25b42466733672aff9fca89f (patch) | |
| tree | be8aaf92d49b2f825a1da88c847e9c013da2d71a /templates | |
| parent | 2fb898ce714e282f5dfca365fe52abc15437f7ef (diff) | |
| download | liberty-3d94c3dfe203edeb25b42466733672aff9fca89f.tar.gz liberty-3d94c3dfe203edeb25b42466733672aff9fca89f.tar.bz2 liberty-3d94c3dfe203edeb25b42466733672aff9fca89f.zip | |
BOM parts list support: xref template dispatch and LibertyXref fixes
- LibertyContent: add getXrefListTemplate(), getXrefRecordTemplate(),
getXrefEditTemplate() for package-aware template dispatch with liberty fallback
- LibertyXref: explicit xorder passthrough in verify(); fix start_date/end_date
to use time() instead of mDb->NOW() so BitDate::date() receives a timestamp
- add_xref.php, edit_xref.php: redirect to getEditUrl() after save/cancel
- list_xref.tpl: use getXrefRecordTemplate() instead of hardcoded liberty path
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/list_xref.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/list_xref.tpl b/templates/list_xref.tpl index 9ac5a3e..a670111 100644 --- a/templates/list_xref.tpl +++ b/templates/list_xref.tpl @@ -22,7 +22,7 @@ <tbody> {section name=xref loop=$gContent->mInfo.$source} <tr class="{cycle values="even,odd"}"> - {include file="bitpackage:liberty/view_xref_`$gContent->mInfo.$source[xref].template`_record.tpl"} + {include file=$gContent->getXrefRecordTemplate($gContent->mInfo.$source[xref].template)} </tr> {sectionelse} <tr class="norecords"> |
