fix nested fields field_name
This commit is contained in:
parent
942c6b2ce1
commit
b54869ac5a
@ -103,7 +103,7 @@ Hooks.once("init", async function() {
|
||||
field_name = field_name.toString();
|
||||
|
||||
let fields = field_name.startsWith("system.") ? options.data.root.document.system.schema.fields : options.data.root.document.schema.fields;
|
||||
let field = foundry.utils.getProperty(fields, field_name.replace(/^(system\.)/, "").replace(".", ".fields."));
|
||||
let field = foundry.utils.getProperty(fields, field_name.replace(/^(system\.)/, "").replaceAll(".", ".fields."));
|
||||
|
||||
if (!field) {
|
||||
console.error("Non-existent data field provided to {{DSA4_input}} handlebars helper.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user