mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
bugfix versandpakete save comment, lose tracking
This commit is contained in:
parent
7bb519ea40
commit
a7fae12200
@ -642,11 +642,13 @@ class Versandpakete {
|
||||
// Write to database
|
||||
// Add checks here
|
||||
|
||||
$sql = "SELECT status FROM versandpakete WHERE id = ".$id;
|
||||
$input['status'] = $this->app->DB->SelectArr($sql)[0]['status']; // Status is not changeable
|
||||
$sql = "SELECT * FROM versandpakete WHERE id = ".$id;
|
||||
$paket_db = $this->app->DB->SelectRow($sql);
|
||||
$input['status'] = $paket_db['status']; // Status is not changeable
|
||||
if ($input['status'] != 'neu') {
|
||||
$input = Array('bemerkung' => $input['bemerkung']);
|
||||
}
|
||||
|
||||
if (!empty($paket_db['tracking'])) { // Tracking is not changeable
|
||||
unset($input['tracking']);
|
||||
unset($input['tracking_link']);
|
||||
|
Loading…
Reference in New Issue
Block a user