Commit 0b6e415a authored by yllen's avatar yllen
Browse files

[0.80] fix migration for autoclose_delay

parent d4726862
......@@ -1646,12 +1646,22 @@ function update0782to080($output='HTML') {
$DB->query($query)
or die("0.80 change autoclose ticket in glpi_configs " . $LANG['update'][90] . $DB->error());
$query = "UPDATE `glpi_entitydatas`
SET `autoclose_delay` = '-2'
WHERE `autoclose_delay` = '-1'";
$DB->query($query)
or die("0.80 change autoclose ticket in glpi_entitydatas for inherit " . $LANG['update'][90] .
$DB->error());
$query = "UPDATE `glpi_entitydatas`
SET `autoclose_delay` = '-1'
WHERE `autoclose_delay` = '0'";
$DB->query($query)
or die("0.80 change autoclose ticket in glpi_entitydatas " . $LANG['update'][90] . $DB->error());
or die("0.80 change autoclose ticket in glpi_entitydatas for not active " . $LANG['update'][90] .
$DB->error());
// must always be at the end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment