Because the upload widget does not pass the node id via the ajax url, the view that validates the session timeslots does not work. It requires a node id to populate the available timeslots for a particular node.

Howto reproduce:
* Create a set of timeslots for a node
* Set a node to a timeslot
* Go back to the node edit page and use the upload widget
* It should say 'illegal choice selected'

Unfortunately I'm not quite sure how to get around this without converting the view for the widget into some custom code that grabs the node-id from the form.

Comments

kclarkson’s picture

japerry’s picture

Basically the suggestion above is how the view currently works. The problem stems from the AJAX callback not passing a node id in the upload widget url, so a form validation error is submitted when you use the upload form.

I found two work-arounds for this issue for now.

  1. Don't use the upload button, just put the slides in using the browse button. The form will upload at the end when you press submit and all is good.
  2. Remove access to the timeslot field for non-admins. This should have already been done because we don't want users scheduling their own times. I've fixed it in the LFNW version, and will get it upstream in Alpha3
chrisguindon’s picture

Issue summary: View changes

The current work around works for me but I am getting this error again if the user tries to delete his slide afterward.

japerry’s picture

Status: Active » Closed (duplicate)