mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 06:41:14 +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
|
// Write to database
|
||||||
// Add checks here
|
// Add checks here
|
||||||
|
|
||||||
$sql = "SELECT status FROM versandpakete WHERE id = ".$id;
|
$sql = "SELECT * FROM versandpakete WHERE id = ".$id;
|
||||||
$input['status'] = $this->app->DB->SelectArr($sql)[0]['status']; // Status is not changeable
|
$paket_db = $this->app->DB->SelectRow($sql);
|
||||||
|
$input['status'] = $paket_db['status']; // Status is not changeable
|
||||||
if ($input['status'] != 'neu') {
|
if ($input['status'] != 'neu') {
|
||||||
$input = Array('bemerkung' => $input['bemerkung']);
|
$input = Array('bemerkung' => $input['bemerkung']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($paket_db['tracking'])) { // Tracking is not changeable
|
if (!empty($paket_db['tracking'])) { // Tracking is not changeable
|
||||||
unset($input['tracking']);
|
unset($input['tracking']);
|
||||||
unset($input['tracking_link']);
|
unset($input['tracking_link']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user