Bruno17 / MIGX

MIGX for revo 2.2 and above
83 stars 78 forks source link

Console Error, TV changes not saving #400

Open ostorres-pscu opened 2 years ago

ostorres-pscu commented 2 years ago

When trying to add a new record in my nested TV on the latest MODX and Latest MIGX, I get the following errors:

Add New TV: Uncaught TypeError: i[(t.xtype || e)] is not a constructor at Object.create (ext-all.js:21:125217) at MODx.load (modx.js?mv=fd260ba9:86:38) at field.onLoad (eval at (ext-all.js:21:76205), :14:41) at MODx.panel.MiGridUpdateinp_565_16_4.load (eval at (ext-all.js:21:76205), :1141:27) at y.Event.fire (ext-all.js:21:3547) at MODx.panel.MiGridUpdateinp_565_16_4.fireEvent (ext-all.js:21:668) at MODx.panel.MiGridUpdateinp_565_16_4.callback (eval at (ext-all.js:21:76205), :1111:22) at constructor.i (ext-all.js:21:89759) at ext-base.js:21:8903 at HTMLSpanElement. (ext-all.js:21:76282)

Saving TV: Uncaught TypeError: Cannot read properties of undefined (reading 'getValue') at field.onBeforeSubmit (eval at (ext-all.js:21:76205), :39:26) at MODx.window.UpdateTvItem.doSubmit (eval at (ext-all.js:21:76205), :893:27) at MODx.window.UpdateTvItem.submitUnclosed (eval at (ext-all.js:21:76205), :876:14) at S.onClick (ext-all.js:21:407804) at HTMLSpanElement.A (ext-all.js:21:52931)

Closing TV Window: Uncaught TypeError: Cannot read properties of undefined (reading 'destroy') at field.onHide (eval at (ext-all.js:21:76205), :33:26) at MODx.window.UpdateTvItem.onHideWindow (eval at (ext-all.js:21:76205), :848:27) at y.Event.fire (ext-all.js:21:3547) at MODx.window.UpdateTvItem.fireEvent (ext-all.js:21:668) at MODx.window.UpdateTvItem.afterHide (ext-all.js:21:359670) at MODx.window.UpdateTvItem.animHide (modx.window.js?mv=301pl:35:14) at MODx.window.UpdateTvItem.hide (ext-all.js:21:359389) at MODx.window.UpdateTvItem.cancel (eval at (ext-all.js:21:76205), :827:14) at S.onClick (ext-all.js:21:407804) at HTMLSpanElement.A (ext-all.js:21:52931)

image

This is my nested TV Form Tabs:

[
    {

      "caption":"Offer Details",
      "print_before_tabs":"0",
      "fields":[
        {

          "field":"offer_type",
          "caption":"Offer Type",
          "description":"",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"listbox",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"preconfirm||confirm||activate||already||error||expired",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":1
        },
        {

          "field":"offer_label",
          "caption":"Offer Label",
          "description":"",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"text",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":2
        },
        {

          "field":"offer_copy",
          "caption":"Offer Copy",
          "description":"",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"richtext",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":3
        },
        {

          "field":"offer_disclosure",
          "caption":"Offer Disclosure",
          "description":"",
          "description_is_code":"0",
          "inputTV":"",
          "inputTVtype":"richtext",
          "validation":"",
          "configs":"",
          "restrictive_condition":"",
          "display":"",
          "sourceFrom":"config",
          "sources":"",
          "inputOptionValues":"",
          "default":"",
          "useDefaultIfEmpty":"0",
          "pos":4
        }
      ],
      "pos":1
    }
  ]