Comment 2 for bug 1803584

Revision history for this message
Beth Willis (willis-a) wrote :

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.