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_movements.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_movements.php')
| -rw-r--r-- | list_movements.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/list_movements.php b/list_movements.php index 700c824..ddb2b1c 100644 --- a/list_movements.php +++ b/list_movements.php @@ -59,6 +59,11 @@ if( $filterUserId ) { $filterUserName = $uRow['real_name'] ?: $uRow['login'] ?: ''; } +$listHash['listInfo']['parameters'] = array_filter( [ + 'part_content_id' => $partContentId ?: '', + 'ref_type' => $_REQUEST['ref_type'] ?? '', + 'user_id' => $filterUserId ?: '', +] ); $gBitSmarty->assign( 'listInfo', $listHash['listInfo'] ); $gBitSmarty->assign( 'movementList', $movementList ); $gBitSmarty->assign( 'filterType', $_REQUEST['ref_type'] ?? '' ); |
