diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-19 14:48:22 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-19 14:48:22 +0100 |
| commit | 23bc437d083984b75e3c261f80239c0f7926c6b6 (patch) | |
| tree | 712d994093115581c2e82c3c81ed3c43a545be06 | |
| parent | 8faef82f3ad9eafa081e74a84cb68d80d4a44c2c (diff) | |
| download | stock-23bc437d083984b75e3c261f80239c0f7926c6b6.tar.gz stock-23bc437d083984b75e3c261f80239c0f7926c6b6.tar.bz2 stock-23bc437d083984b75e3c261f80239c0f7926c6b6.zip | |
Fix list_stock pagination: assembly selector was clobbering \$listHash
\$listHash = ['max_records' => 500] for the assembly dropdown overwrote the
pagination listHash, making postGetList see max_records=500 and calculate
total_pages=1. Renamed to \$asmHash.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | list_stock.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list_stock.php b/list_stock.php index 850b024..ae76f51 100644 --- a/list_stock.php +++ b/list_stock.php @@ -172,8 +172,8 @@ if( $showShortages ) { // Assembly selector list $assembly = new StockAssembly(); -$listHash = [ 'show_empty' => true, 'sort_mode' => 'title_asc', 'max_records' => 500 ]; -$assemblyList = $assembly->getList( $listHash ); +$asmHash = [ 'show_empty' => true, 'sort_mode' => 'title_asc', 'max_records' => 500 ]; +$assemblyList = $assembly->getList( $asmHash ); // Load selected assembly title for display $assemblyTitle = ''; |
