Skip to content

Commit

Permalink
fix cache status flags on logtype change to 'available'; updates #1073
Browse files Browse the repository at this point in the history
  • Loading branch information
following5 authored and teiling88 committed Aug 6, 2017
1 parent dc39804 commit 3d36448
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion htdocs/editlog.php
Expand Up @@ -305,14 +305,16 @@
} }


// store changed data // store changed data
$cache_ok_sql = ", `needs_maintenance`=1, `listing_outdated`=1";
sql( sql(
"UPDATE `cache_logs` "UPDATE `cache_logs`
SET `type`='&1', SET `type`='&1',
`oc_team_comment`='&2', `oc_team_comment`='&2',
`date`='&3', `date`='&3',
`text`='&4', `text`='&4',
`text_html`='&5', `text_html`='&5',
`text_htmledit`='&6' `text_htmledit`='&6'" .
($log_type == cachelog::LOGTYPE_ACTIVE ? $cache_ok_sql : "") . "
WHERE `id`='&7'", WHERE `id`='&7'",
$log_type, $log_type,
$oc_team_comment, $oc_team_comment,
Expand Down

0 comments on commit 3d36448

Please sign in to comment.