fix: moved setupHelperMethods from setupFormController to evaluateFormClass
(cherry picked from commit 875431a620027de9a5d30fc6ab0d12047c09b82b)
This commit is contained in:
parent
d820ff1572
commit
c583e8044b
@ -126,7 +126,6 @@ export function getScript(doctype, view = 'Form') {
|
|||||||
return meta[doctype]
|
return meta[doctype]
|
||||||
}
|
}
|
||||||
|
|
||||||
setupHelperMethods(FormClass, document)
|
|
||||||
const getDoc = () => document.doc
|
const getDoc = () => document.doc
|
||||||
|
|
||||||
if (isChildDoctype) {
|
if (isChildDoctype) {
|
||||||
@ -220,6 +219,9 @@ export function getScript(doctype, view = 'Form') {
|
|||||||
const FormClass = new Function(...helperKeys, wrappedScript)(
|
const FormClass = new Function(...helperKeys, wrappedScript)(
|
||||||
...helperValues,
|
...helperValues,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
setupHelperMethods(FormClass)
|
||||||
|
|
||||||
return FormClass
|
return FormClass
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user