Commit aa74d538 authored by jan.koester's avatar jan.koester
Browse files

bugfix

parent 5889e794
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
@@ -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) {