ez3.7 - attribute_edit_gui problems

Author Message

Marin Orlic

Monday 22 August 2005 8:56:41 am

Hi all,

I have problems when using {attribute_edit_gui ...} in forms (user/register in this case). When the form fails validation, the fields are cleared (even those that are correct), and previous entries forgotten.

I've tried writing my own HTML instead of using attribute_edit_gui, for instance, something like this for a simple text field (ezstring):

<input type="text" name="ContentObjectAttribute_ezstring_data_text_{$object.data_map.first_name.id}" class="box" size="70" value="{$object.data_map.first_name.data_text|wash( xhtml )}" />

Which creates the same code as attribute_edit_gui. Admin interface works fine (using the same standard templates), and similar code written for e-mail field works ok:

<input type="text" name="ContentObjectAttribute_data_user_email_{$object.data_map.user_account.id}" class="box" size="70" value="{$object.data_map.user_account.content.email|wash( xhtml )}" />

eZ is SVN 13035, PHP is 4.4.0.

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 19:08:48
Script start
Timing: Jan 18 2025 19:08:48
Module start 'layout'
Timing: Jan 18 2025 19:08:48
Module start 'content'
Timing: Jan 18 2025 19:08:50
Module end 'content'
Timing: Jan 18 2025 19:08:50
Script end

Main resources:

Total runtime1.2191 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.0703152.6250
Module start 'layout' 0.00800.0037 741.695339.4453
Module start 'content' 0.01171.2057 781.1406402.0469
Module end 'content' 1.21740.0017 1,183.18758.1563
Script end 1.2191  1,191.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2992160.0002
Check MTime0.00140.1133160.0001
Mysql Total
Database connection0.00120.096010.0012
Mysqli_queries1.175596.4243460.0256
Looping result0.00040.0322440.0000
Template Total1.183497.120.5917
Template load0.00210.174620.0011
Template processing1.181396.893820.5906
Template load and register function0.00020.019310.0002
states
state_id_array0.00070.057810.0007
state_identifier_array0.00270.222520.0014
Override
Cache load0.00170.1365100.0002
Sytem overhead
Fetch class attribute can translate value0.00140.114910.0014
Fetch class attribute name0.00060.051010.0006
XML
Image XML parsing0.00010.009910.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00070.0565100.0001
String conversion0.00000.001440.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs