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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 03:11:42
Script start
Timing: Jan 18 2025 03:11:42
Module start 'layout'
Timing: Jan 18 2025 03:11:42
Module start 'content'
Timing: Jan 18 2025 03:11:43
Module end 'content'
Timing: Jan 18 2025 03:11:43
Script end

Main resources:

Total runtime0.5954 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 591.2188152.6406
Module start 'layout' 0.00540.0029 743.859439.4844
Module start 'content' 0.00830.5856 783.3438538.5000
Module end 'content' 0.59390.0014 1,321.843812.4375
Script end 0.5953  1,334.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5202160.0002
Check MTime0.00130.2185160.0001
Mysql Total
Database connection0.00060.099910.0006
Mysqli_queries0.549192.2258570.0096
Looping result0.00040.0710550.0000
Template Total0.569295.620.2846
Template load0.00200.340520.0010
Template processing0.567295.265620.2836
Template load and register function0.00010.020110.0001
states
state_id_array0.00040.063810.0004
state_identifier_array0.00100.169820.0005
Override
Cache load0.00160.2749210.0001
Sytem overhead
Fetch class attribute can translate value0.00040.069720.0002
Fetch class attribute name0.00100.162140.0002
XML
Image XML parsing0.00090.148220.0004
class_abstraction
Instantiating content class attribute0.00000.001540.0000
General
dbfile0.00170.2805160.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs