mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-02-10 18:05:42 +08:00
[oform] Fix zip archive on save
This commit is contained in:
@ -77,6 +77,15 @@
|
||||
xmlPkg.setContext(new AscOForm.XmlWriterContext(xmlPkg));
|
||||
writer.context = xmlPkg.getContext();
|
||||
this.Format.toPkg(xmlPkg);
|
||||
|
||||
// Наш XmlPackage работает в общей папке, а нам нужно запихнуть в zip подпапку oform
|
||||
zip.getPaths().forEach(function(path)
|
||||
{
|
||||
let fileData = zip.getFile(path);
|
||||
zip.removeFile(path);
|
||||
if (path.startsWith("oform/"))
|
||||
zip.addFile(path.substr(6), fileData);
|
||||
});
|
||||
};
|
||||
OForm.prototype.setCurrentRole = function(roleName)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user