ghowland / web6.0

Web Six Point Oh
MIT License
1 stars 5 forks source link

Unable to create new web_site_page_widget through UI #29

Open jacksontj opened 6 years ago

jacksontj commented 6 years ago

When I attempt to create a new page widget on a web_site_page the overlay form redraws completely empty. There are 2 problems here:

(1) there was an error -- and it didn't show it to me (and it dropped all the things I typed) (2) the actual error-- that the data is missing the web_site_page_id

More detail on #2:

The data posted to the server:

data = {
    "name": "testwidget",
    "priority": "10",
    "web_data_widget_instance_id": "17",
    "web_widget_id": "",
    "web_widget_instance_output": "output.primary",
    "info": "",
    "_id": "",
    "_web_data_widget_instance_id": "8",
    "_table": "web_site_page_widget"
}

When I dig into the logs I see Dataman SET: ERROR: Set unable to update non-existing record, when I added a print of the underlying exception in dataman I see error &{Missing required field web_site_page_id map[] false false}, and sure enough that field is missing in the data that is part of the POST.

This should be a relatively simple change to make the edit dialog's form include that id, but I'm not sure where that is in the database (used previous versions of this system, just not this one ;) ).

zelin-l commented 6 years ago

Likely an error with the UDN code for the edit dialog form. Will look into this sometime and get back on this issue :)