[SSE] Fix wb password

This commit is contained in:
Julia Radzhabova 2021-11-09 17:33:20 +03:00
parent 74a479045b
commit 4bfc767a60

View file

@ -150,7 +150,7 @@ define([
btn = result;
if (result == 'ok') {
if (me.api) {
props.asc_setLockStructure(value, _.bind(me.onSetProtectedWorkbook, me));
props.asc_setLockStructure(value && value.drmOptions ? value.drmOptions.asc_getPassword() : undefined, _.bind(me.onSetProtectedWorkbook, me));
}
Common.NotificationCenter.trigger('edit:complete');
}