fix: moved setupHelperMethods from setupFormController to evaluateFormClass

This commit is contained in:
Shariq Ansari 2025-05-26 16:57:02 +05:30
parent db0c0d98bc
commit 875431a620

View File

@ -126,7 +126,6 @@ export function getScript(doctype, view = 'Form') {
return meta[doctype]
}
setupHelperMethods(FormClass, document)
const getDoc = () => document.doc
if (isChildDoctype) {
@ -220,6 +219,9 @@ export function getScript(doctype, view = 'Form') {
const FormClass = new Function(...helperKeys, wrappedScript)(
...helperValues,
)
setupHelperMethods(FormClass)
return FormClass
}