mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-02-10 18:05:42 +08:00
[oform] Add clone method for field master
This commit is contained in:
@ -55,6 +55,22 @@
|
||||
{
|
||||
this.Field = logicField;
|
||||
};
|
||||
CFieldMaster.prototype.clone = function()
|
||||
{
|
||||
let fm = new CFieldMaster(true);
|
||||
|
||||
for (let index = 0, count = this.Users.length; index < count; ++index)
|
||||
{
|
||||
fm.addUser(this.Users[index]);
|
||||
}
|
||||
|
||||
for (let index = 0, count = this.Signers.length; index < count; ++index)
|
||||
{
|
||||
fm.addSigner(this.Signers[index]);
|
||||
}
|
||||
|
||||
return fm;
|
||||
};
|
||||
CFieldMaster.prototype.setFieldId = function(fieldId)
|
||||
{
|
||||
if (fieldId === this.FieldId)
|
||||
|
||||
@ -140,7 +140,6 @@
|
||||
|
||||
if (fields.length > 0)
|
||||
{
|
||||
// TODO: При удалении все поля переназначить на заданную роль
|
||||
let delegateUserMaster, delegateFieldGroup;
|
||||
if (-1 === delegateIndex || delegateIndex === roleIndex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user