Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console Error, TV changes not saving #400

Open
ostorres-pscu opened this issue Aug 1, 2022 · 0 comments
Open

Console Error, TV changes not saving #400

ostorres-pscu opened this issue Aug 1, 2022 · 0 comments

Comments

@ostorres-pscu
Copy link

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
    }
  ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant