From: Philipp Spitzer Date: Tue, 24 Sep 2013 20:56:46 +0000 (+0000) Subject: Fixed a yet unknown bug: The room name was not properly inserted in the room table. X-Git-Tag: 0.6.1~8 X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/commitdiff_plain/d942dc381ccac07536ac1046dac3eeea2d087740 Fixed a yet unknown bug: The room name was not properly inserted in the room table. --- diff --git a/src/sql/sqlengine.cpp b/src/sql/sqlengine.cpp index 823a2b6..0c16ab7 100644 --- a/src/sql/sqlengine.cpp +++ b/src/sql/sqlengine.cpp @@ -291,7 +291,7 @@ void SqlEngine::addRoomToDB(QHash &aRoom) { query = QSqlQuery(db); query.prepare("INSERT INTO ROOM (xid_conference,name) VALUES (:xid_conference, :name)"); query.bindValue(":xid_conference", aRoom["conference_id"]); - query.bindValue(":xid_name", aRoom["name"]); + query.bindValue(":name", aRoom["name"]); query.exec(); emitSqlQueryError(query); aRoom["id"]= query.lastInsertId().toString(); // 'id' is assigned automatically