diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-29 16:34:45 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-29 16:34:45 +0100 |
| commit | 6faa108ff989162e5380d8943efa11683bb18b1d (patch) | |
| tree | 7fe66145a6bad8fe8edc830fb404e1f50f63d5c1 /includes | |
| parent | 851215fce6fb91c0bdacaad99bab9456252896bf (diff) | |
| download | stock-6faa108ff989162e5380d8943efa11683bb18b1d.tar.gz stock-6faa108ff989162e5380d8943efa11683bb18b1d.tar.bz2 stock-6faa108ff989162e5380d8943efa11683bb18b1d.zip | |
Fix supplier view: contact name lookup and date column visibility
- StockBase: getAssoc() 2-col query returns scalar not array; access directly
- view_xref_sup_item.tpl: move start_date and last_update_date inside
xrefAllowEdit guard; remove |default:true to prevent false being overridden;
column count now matches group template headers in both view and edit modes
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'includes')
| -rwxr-xr-x | includes/classes/StockBase.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/classes/StockBase.php b/includes/classes/StockBase.php index ba0ff16..8519f99 100755 --- a/includes/classes/StockBase.php +++ b/includes/classes/StockBase.php @@ -46,7 +46,7 @@ abstract class StockBase extends LibertyContent ); foreach( $this->mInfo['supplier'] as &$row ) { if( !empty( $row['xref'] ) && isset( $contacts[$row['xref']] ) ) { - $row['xref_title'] = $contacts[$row['xref']]['title']; + $row['xref_title'] = $contacts[$row['xref']]; } } unset( $row ); |
