summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-17 18:04:30 +0200
committerSimon Rettberg2015-09-17 18:04:30 +0200
commit5ea09924161b502a3d23bfd60409d50d95f18264 (patch)
treede4b1d0e69aa7e6ac411d139ce718d24fef81d65
parentUpdate bootstrap (diff)
downloadslx-admin-5ea09924161b502a3d23bfd60409d50d95f18264.tar.gz
slx-admin-5ea09924161b502a3d23bfd60409d50d95f18264.tar.xz
slx-admin-5ea09924161b502a3d23bfd60409d50d95f18264.zip
[dozmod] Change deletestate name
-rw-r--r--modules/dozmod.inc.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/dozmod.inc.php b/modules/dozmod.inc.php
index 35edb22c..98cacd59 100644
--- a/modules/dozmod.inc.php
+++ b/modules/dozmod.inc.php
@@ -63,7 +63,7 @@ class Page_DozMod extends Page
} else {
$row['hasNewerClass'] = 'glyphicon-remove red';
}
- if ($row['deletestate'] === 'DO_DELETE') {
+ if ($row['deletestate'] === 'WANT_DELETE') {
$row['name_extra_class'] = 'slx-strike';
}
$row['version'] = date('d.m.Y H:i:s', $row['createtime']);
@@ -113,7 +113,7 @@ class Page_DozMod extends Page
foreach ($images as $image => $val) {
if (strtolower($val) !== 'on')
continue;
- Database::exec("UPDATE sat.imageversion SET deletestate = 'DO_DELETE'"
+ Database::exec("UPDATE sat.imageversion SET deletestate = 'WANT_DELETE'"
. " WHERE deletestate = 'SHOULD_DELETE' AND imageversionid = :imageversionid", array(
'imageversionid' => $image
));
@@ -123,6 +123,7 @@ class Page_DozMod extends Page
if ($code == 999) {
$ret .= "\nConnection to DMSD failed.";
}
+ return $ret;
}
}
return false;