Commit b8ba6d46 authored by Leigh Stoller's avatar Leigh Stoller

Do not archive unapproved reservations in the history table.

parent 0526c21d
......@@ -538,7 +538,7 @@ sub Tidy($)
"start, end, uid, notes, admin_notes ) " .
"SELECT pid, nodes, type, start, end, uid, notes, " .
"admin_notes FROM future_reservations WHERE " .
"end < '$stamp'" );
"end < '$stamp' and approved is not null" );
DBQueryFatal( "DELETE FROM future_reservations WHERE " .
"end < '$stamp'" );
DBQueryFatal( "DELETE a FROM future_reservation_attributes AS a " .
......
Markdown is supported
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