I have a page that I use to update information in a custom object. The idea is that if I have never made an entry for a contact in this object, then a new record is created upon save. When I go back to that record, I have the page clone the original entry and present it to the user. The user than can update the data and save it. This will not update the original record as I used the clone feature. It instead creates a new record. It allows me to create a change history for that object.
It worked great until I upgraded to Brooklyn. It still works great IF there is at least 1 existing row upon page load. If there are not existing rows, then the page renders correctly without errors, but when I save it, it acts like it saves the record ( I get no error messages), but it doesn’t actually save the record. I get this error in the console. Interestingly, on the save action, I have set it to show an error if the model doesn’t save, but that doesn’t even display.
In summary:
If you set a model to “Clone Always” and you set it to “Create Default Row If Model Has None” and if your model has no rows upon page load, then when you try to save it, it does not save and you get this error in the console.
skuid__SkuidJS:8 Uncaught TypeError: Cannot read property ‘row’ of undefined at Object. (skuid__SkuidJS:8) at Function.each (skuid__JQueryJS:2) at W. (skuid__SkuidJS:8) at Function.each (skuid__JQueryJS:2) at Object.K [as save] (skuid__SkuidJS:8) at save (skuid__SkuidJS:18) at Object.h.runActionNode (skuid__SkuidJS:18) at m (skuid__SkuidJS:18) at Object.h.runActionsNode (skuid__SkuidJS:18) at HTMLDivElement. (core.js:3)


