[oform] Fix weight when add a field group

This commit is contained in:
KirillovIlya
2022-11-28 15:03:09 +03:00
parent a75c5124c0
commit 14bb7c4042
2 changed files with 2 additions and 1 deletions

View File

@ -241,6 +241,7 @@
// Нельзя, чтобы групп не было вообще
let defaultGroup = new AscOForm.CFieldGroup();
defaultGroup.setWeight(this.Format.getMaxWeight() + 1);
this.Format.addFieldGroup(defaultGroup);
defaultGroup.addUser(this.Format.getDefaultUser());
};