diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-21 10:10:17 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-21 10:10:17 +0100 |
| commit | d494e495715e1dca056a05442e83dfb16a0c0354 (patch) | |
| tree | bb9e41c23a0ddb9b7e68936b23ecce445de6bf08 /list_components.php | |
| parent | 8829bafaa683836e0ae16ead818b50ded9ec94f9 (diff) | |
| download | stock-d494e495715e1dca056a05442e83dfb16a0c0354.tar.gz stock-d494e495715e1dca056a05442e83dfb16a0c0354.tar.bz2 stock-d494e495715e1dca056a05442e83dfb16a0c0354.zip | |
Persist filter params through smartlink sort clicks on list pages
Populate listInfo['parameters'] on list_movements, list_assemblies, and
list_components so icontrol carries part_content_id/ref_type/user_id/
gallery_id/hide_kitlocker through sort URLs. Wire icontrol=$listInfo on
list_movements.tpl sort headers which were previously missing it.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'list_components.php')
| -rw-r--r-- | list_components.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/list_components.php b/list_components.php index 9bb68ac..21ede86 100644 --- a/list_components.php +++ b/list_components.php @@ -29,6 +29,11 @@ if( !isset( $_REQUEST['hide_kitlocker'] ) && empty( $_REQUEST['filter_submitted' $componentList = $component->getList( $_REQUEST ); $component->invokeServices( 'content_list_function', $_REQUEST ); +$_REQUEST['listInfo']['parameters'] = array_filter( [ + 'user_id' => !empty( $_REQUEST['user_id'] ) ? (int)$_REQUEST['user_id'] : '', + 'hide_kitlocker' => $_REQUEST['hide_kitlocker'] ?? '', + 'filter_submitted' => $_REQUEST['filter_submitted'] ?? '', +] ); $gBitSmarty->assign( 'listInfo', $_REQUEST['listInfo'] ); $gBitSmarty->assign( 'componentList', $componentList ); $gBitSmarty->assign( 'hideKitlocker', (bool)$_REQUEST['hide_kitlocker'] ); |
