Problem with Datatype selection

Author Message

justin kazadi

Monday 25 May 2009 10:40:13 am

Hi,

i have an feedbask-form content class that contain an field with an datatype selection and other fields "datatype (text line,courriel, integer,...)" . but when i submit the form , the field with the datatype "selection" are empty.

why this behavor?

the code of the ezselection.tpl is :

{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{default attribute_base=ContentObjectAttribute}
{let selected_id_array=cond( is_set( $#collection_attributes[$attribute.id] ), $#collection_attributes[$attribute.id].content, $attribute.content )}

{* Always set the .._selected_array_.. variable, this circumvents the problem when nothing is selected. *}


<select name="{$attribute_base}_ezselect_selected_array_{$attribute.id}[]" {section show=$attribute.class_content.is_multiselect}multiple{/section}>
{section var=Options loop=$attribute.class_content.options}
<option value="{$Options.item.id}" {section show=$selected_id_array|contains( $Options.item.id )}selected="selected"{/section}>{$Options.item.name|wash( xhtml )}</option>
{/section}
</select>
<input type=hidden name="{$attribute_base}_ezselect_selected_array_{$attribute.id}" value="{$Options.item.name}">
{/let}
{/default}

think in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

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 22:22:31
Script start
Timing: Jan 18 2025 22:22:31
Module start 'layout'
Timing: Jan 18 2025 22:22:31
Module start 'content'
Timing: Jan 18 2025 22:22:32
Module end 'content'
Timing: Jan 18 2025 22:22:32
Script end

Main resources:

Total runtime0.8791 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.0057 587.9141152.6250
Module start 'layout' 0.00570.0033 740.539139.4453
Module start 'content' 0.00910.8684 779.9844467.8281
Module end 'content' 0.87750.0016 1,247.81258.1641
Script end 0.8791  1,255.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3677160.0002
Check MTime0.00130.1457160.0001
Mysql Total
Database connection0.00090.098610.0009
Mysqli_queries0.835695.0506460.0182
Looping result0.00040.0441440.0000
Template Total0.842995.920.4214
Template load0.00190.212620.0009
Template processing0.841095.667820.4205
Template load and register function0.00010.011410.0001
states
state_id_array0.00240.278010.0024
state_identifier_array0.00180.209220.0009
Override
Cache load0.00160.1785100.0002
Sytem overhead
Fetch class attribute can translate value0.00070.077010.0007
Fetch class attribute name0.00040.050620.0002
XML
Image XML parsing0.00040.049010.0004
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00170.1879160.0001
String conversion0.00030.033840.0001
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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs