This code works as described on our system running EG 3.2.4.
I was able to clear values from a template while creating a new template and while editing an existing template.
On our EG 3.1.8 system (without this code applied), when trying to clear values from a new template or editing an existing template, there were no visible changes to the template interface and the following error was generated:
TypeError: Cannot set property 'statcat_filter' of undefined
at app.js:2528
at Object.o [as forEach] (vendor.bundle.js:6)
at f.$scope.clearWorking (app.js:2527)
at fn (eval at compile (vendor.bundle.js:6), <anonymous>:4:156)
at r (vendor.bundle.js:6)
at f.$eval (vendor.bundle.js:6)
at f.$apply (vendor.bundle.js:6)
at HTMLButtonElement.<anonymous> (vendor.bundle.js:6)
at HTMLButtonElement.dispatch (jquery.min.js:2)
at HTMLButtonElement.y.handle (jquery.min.js:2)
I was able to clear values from the copy editor while editing multiple copies in both systems, with and without this code.
This code works as described on our system running EG 3.2.4.
I was able to clear values from a template while creating a new template and while editing an existing template.
On our EG 3.1.8 system (without this code applied), when trying to clear values from a new template or editing an existing template, there were no visible changes to the template interface and the following error was generated:
TypeError: Cannot set property 'statcat_filter' of undefined bundle. js:6) clearWorking (app.js:2527) bundle. js:6), <anonymous>:4:156) bundle. js:6) bundle. js:6) bundle. js:6) nt.<anonymous> (vendor. bundle. js:6) nt.dispatch (jquery.min.js:2) nt.y.handle (jquery.min.js:2)
at app.js:2528
at Object.o [as forEach] (vendor.
at f.$scope.
at fn (eval at compile (vendor.
at r (vendor.
at f.$eval (vendor.
at f.$apply (vendor.
at HTMLButtonEleme
at HTMLButtonEleme
at HTMLButtonEleme
I was able to clear values from the copy editor while editing multiple copies in both systems, with and without this code.