diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-06-03 18:56:59 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-06-03 18:56:59 +0100 |
| commit | abefc1932497c4feb1953fcd108160315bfd540e (patch) | |
| tree | 6baf0af7e3373ea83dc21ee60826a5e4b4ccea40 | |
| parent | 687fe972b2bc693e15491aadb5a7c74e0f20ef85 (diff) | |
| download | stock-abefc1932497c4feb1953fcd108160315bfd540e.tar.gz stock-abefc1932497c4feb1953fcd108160315bfd540e.tar.bz2 stock-abefc1932497c4feb1953fcd108160315bfd540e.zip | |
stock: redirect to view_movement after save/mark-received
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | edit_movement.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/edit_movement.php b/edit_movement.php index a28f3cf..e492cee 100644 --- a/edit_movement.php +++ b/edit_movement.php @@ -45,14 +45,14 @@ if( !empty( $_REQUEST['fSave'] ) ) { $gBitSmarty->assign( 'csvSkipped', $csvResult['skipped'] ); $gBitSmarty->assign( 'csvErrors', $csvResult['errors'] ); } else { - header( 'Location: '.STOCK_PKG_URL.'edit_movement.php?content_id='.$gContent->mContentId ); + header( 'Location: '.$gContent->getDisplayUrl() ); die; } } } elseif( !empty( $_REQUEST['fReceived'] ) && $gContent->isValid() ) { $gContent->markReceived(); - header( 'Location: '.STOCK_PKG_URL.'edit_movement.php?content_id='.$gContent->mContentId ); + header( 'Location: '.$gContent->getDisplayUrl() ); die; } elseif( !empty( $_REQUEST['upload_csv'] ) && $gContent->isValid() ) { |
