Forums / General / Custom user class selection field update issue

Custom user class selection field update issue

Author Message

Tom W

Monday 27 September 2010 2:37:35 pm

Hello,
I'm having a problem with my custom user class and wondering if anyone had experience a similar situation.

My custom user class has an extra attribute, selection type, single choice, required.
(it also has a couple dozen text line fields)

Anyhow, in eng siteaccess, a logged in user is unable to update the value to this selection field.
It always returns "input required" eventhough a value has been selected.
The odd thing is that there's no issue with it through user self registration, or editing through the site admin siteaccess.

If I were to set the field to not be required, the user can edit all other fields, but the data of this selection field doesn't save.

Naturally, next thing that comes to mind is if the ezselection template was compromised. I checked and it is not.
It used the defualt "design/standard/templates/content/datatype/edit/ezselection.tpl"

Anyone has any ideas or had experience the same issue where a user can't selfedit a selction field?

Matthieu Sévère

Tuesday 28 September 2010 12:07:56 am

Hello Tom,

How you're template is rendering in the page ? Do you have the right IDs ? And when posting the form you can check with firebug (or another) what post parameters where send, you should be able the see the selection attribute right there (or not)

--
eZ certified developer: http://ez.no/certification/verify/346216

Tom W

Thursday 30 September 2010 1:42:30 pm

after 2 hrs of testing, finally found the issue.
an html above the form was malformed, which somehow effected the hidden fields used to keep the select array value.