Smaller bug fixes to compendium and minor feature for multiselect

This commit is contained in:
Litasa
2025-02-22 15:04:17 +00:00
committed by Vlyan
parent f49919b588
commit deaaf746d5
5 changed files with 62 additions and 13 deletions

View File

@@ -74,7 +74,7 @@ export class BaseItemSheetL5r5e extends ItemSheet {
*/
async _updateObject(event, formData) {
// If we have an official source then store the id instead
if(event.currentTarget?.name === "system.source_reference.source") {
if(event.type == 'submit' || event.currentTarget?.name === "system.source_reference.source") {
Object.entries(CONFIG.l5r5e.sourceReference).forEach(([id, value]) => {
if(game.i18n.localize(value.label) === formData["system.source_reference.source"]) {
formData["system.source_reference.source"] = id;