From 52d06c16d6da9ccab94cbc4505a6d901bdfbb9fb Mon Sep 17 00:00:00 2001 From: Sophia Oliinik <105466628+oliiso@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:42:20 -0700 Subject: [PATCH] Update logic for extension Co-authored-by: Jaeseok Kang <123261952+ziesski@users.noreply.github.com> --- table.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/table.cpp b/table.cpp index bdf6f6b..c810d1e 100644 --- a/table.cpp +++ b/table.cpp @@ -99,10 +99,12 @@ TableCell::TableCell(float d, const std::string& c, int precision, const std::st if (event == "Overridden"){ override = true; bad_status = inquiry = extension = version_conflict = cancelled = false; - } else if (event == "Extension" && reason != ""){ + } else if (event == "Extension"){ extension = true; inquiry = bad_status = override = version_conflict = cancelled = false; + if (reason != ""){ hoverText = "class=\"hoverable-cell\" data-hover-text=\"" + userName + " received a " + std::to_string(daysExtended) + " day extension due to " + reason + " on " + gID + "\" "; + } } else if (event == "Open"){ inquiry = true; bad_status = override = extension = version_conflict = cancelled = false;