mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Merge branch 'set' into 'master'
BUG: Fix `ExtendedItemSetOptionByRecord()` failing to propagate all valid baseline property names See merge request BondageProjects/Bondage-College!5488
This commit is contained in:
commit
2bab98eb16
1 changed files with 4 additions and 4 deletions
|
@ -1379,8 +1379,8 @@ function ExtendedItemSetOptionByRecord(C, itemOrGroupName, typeRecord=null, opti
|
|||
}
|
||||
|
||||
const baseline = newOption.ParentData.baselineProperty;
|
||||
if (baseline != null) {
|
||||
propertyKeys.add.apply(propertyKeys, CommonKeys(baseline));
|
||||
for (const prop of CommonKeys(baseline ?? {})) {
|
||||
propertyKeys.add(prop);
|
||||
}
|
||||
|
||||
const requirementMessage = validationCallback(newOption.ParentData, C, item, newOption, previousOption);
|
||||
|
@ -1393,8 +1393,8 @@ function ExtendedItemSetOptionByRecord(C, itemOrGroupName, typeRecord=null, opti
|
|||
} else if (properties != null) {
|
||||
previousOptions.forEach(option => {
|
||||
const baseline = option.ParentData.baselineProperty;
|
||||
if (baseline != null) {
|
||||
propertyKeys.add.apply(propertyKeys, CommonKeys(baseline));
|
||||
for (const prop of CommonKeys(baseline ?? {})) {
|
||||
propertyKeys.add(prop);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue