Loading editor/src/webedit_api.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -1182,8 +1182,8 @@ void webedit::Api::handleRestoreRevision(libhttppp::HttpRequest &curreq, } // Reload the restored version into session std::string name, xml; _db.loadDocument(uid, docId, name, xml); std::string name, xml, group; _db.loadDocument(uid, docId, name, xml, group); auto &doc = getDocState(sessionid); std::lock_guard<std::mutex> lk(doc.mtx); Loading @@ -1192,6 +1192,7 @@ void webedit::Api::handleRestoreRevision(libhttppp::HttpRequest &curreq, doc.ownedElements.clear(); doc.currentDocId = docId; doc.currentDocName = name; doc.currentDocGroup = group; tinyxml2::XMLDocument xmlDoc; if (xmlDoc.Parse(xml.c_str()) == tinyxml2::XML_SUCCESS) { Loading Loading
editor/src/webedit_api.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -1182,8 +1182,8 @@ void webedit::Api::handleRestoreRevision(libhttppp::HttpRequest &curreq, } // Reload the restored version into session std::string name, xml; _db.loadDocument(uid, docId, name, xml); std::string name, xml, group; _db.loadDocument(uid, docId, name, xml, group); auto &doc = getDocState(sessionid); std::lock_guard<std::mutex> lk(doc.mtx); Loading @@ -1192,6 +1192,7 @@ void webedit::Api::handleRestoreRevision(libhttppp::HttpRequest &curreq, doc.ownedElements.clear(); doc.currentDocId = docId; doc.currentDocName = name; doc.currentDocGroup = group; tinyxml2::XMLDocument xmlDoc; if (xmlDoc.Parse(xml.c_str()) == tinyxml2::XML_SUCCESS) { Loading