Skip to content

Commit

Permalink
Fix : object origin was fetched instead of shipment => errors when cr…
Browse files Browse the repository at this point in the history
…eating shipment
  • Loading branch information
atm-maxime committed Oct 14, 2013
1 parent 07d04b7 commit 9d821d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/expedition/fiche.php
Expand Up @@ -51,9 +51,9 @@

$origin = GETPOST('origin','alpha')?GETPOST('origin','alpha'):'expedition'; // Example: commande, propal
$origin_id = GETPOST('id','int')?GETPOST('id','int'):'';
$id = $origin_id;
if (empty($origin_id)) $origin_id = GETPOST('origin_id','int'); // Id of order or propal
if (empty($origin_id)) $origin_id = GETPOST('object_id','int'); // Id of order or propal
$id = $origin_id;
$ref=GETPOST('ref','alpha');

// Security check
Expand Down

0 comments on commit 9d821d3

Please sign in to comment.