form select does not consider an empty value

Bug #317143 reported by e.mortoray
2
Affects Status Importance Assigned to Milestone
Persephone
In Progress
Undecided
e.mortoray

Bug Description

Attempting to edit an eentity it a form with selections where the select item is not defined (in the entity) produces a null error. It is very strange that this is produced on setup of the form (not attempting to save yet).

This can be seen on the demo pages, simply choose "FUll Edit" for the first element.

Revision history for this message
e.mortoray (e-mortoray) wrote :

Actually this error is more likely now:

Notice: Trying to get property of non-object in /svn/perseph-trunk/php_support/html_quickform.inc on line 161

Changed in persephone:
status: New → Confirmed
Revision history for this message
e.mortoray (e-mortoray) wrote :

Easy to get rid of the error, but I don't think something should be selected in the listbox then...

Changed in persephone:
assignee: nobody → e-mortoray
status: Confirmed → In Progress
Revision history for this message
e.mortoray (e-mortoray) wrote :

This applies to anything, not just entities, anytime an entity is not in the list of options for the selectbox, something has to be done.

Revision history for this message
e.mortoray (e-mortoray) wrote :

I have it basically working, though there is an error that when the form has an error and reloads, the additional value is not recreated in the list... :(

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.