From c275812d823acccfc7e9aa8f5a94ff2cfbf78461 Mon Sep 17 00:00:00 2001
From: HLeiTR <sy.hung@mail.utoronto.ca>
Date: Mon, 28 Nov 2022 19:49:05 -0500
Subject: [PATCH] [*] Bug fix on ModifyEntry

---
 src/main/java/billgates/database/MySQLDatabaseGateway.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/billgates/database/MySQLDatabaseGateway.java b/src/main/java/billgates/database/MySQLDatabaseGateway.java
index b02aa65..d3a3531 100644
--- a/src/main/java/billgates/database/MySQLDatabaseGateway.java
+++ b/src/main/java/billgates/database/MySQLDatabaseGateway.java
@@ -573,8 +573,8 @@ public void modifyEntry(int billId, QueryEntryData entry) {
                     entry.getFrom(),
                     entry.getTo(),
                     entry.getLocation(),
-                    entry.getId(),
-                    entry.getSplitBillId());
+                    entry.getSplitBillId(),
+                    entry.getId());
 
             statement.execute(query);