Information collections - Multiple items created

Author Message

Fred Gueho

Monday 29 September 2008 8:58:23 am

I have set a simple feedback form. When a form is submitted, I obtain two collections in the 'collected iformation' for one submission.

How can I prevent that ?

Here is my template code :

{include uri='design:content/collectedinfo_validation.tpl'}
{def $myparentnode = fetch(content,node,hash(node_id,$node.parent_node_id))}
<form method="post" action={"content/action"|ezurl} id="myform">
<div>
<p>
<label>{$node.data_map.nom.contentclass_attribute.name} *</label>
{attribute_view_gui attribute=$node.data_map.nom}
<label>{$node.data_map.societe.contentclass_attribute.name} *</label>
{attribute_view_gui attribute=$node.data_map.societe}
</p>
</div>
<input name="TopLevelNode" value="{$node.node_id}" type="hidden">
<input name="ContentNodeID" value="{$node.node_id}" type="hidden">
<input name="ContentObjectID" value="{$node.object.id}" type="hidden">
<p id="btn"><input name="ActionCollectInformation" value="Envoyer" type="submit"></p>
</form>

Thanks.

Fred

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

Main resources:

Total runtime0.8121 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.0070 589.4844152.6406
Module start 'layout' 0.00700.0039 742.125039.4766
Module start 'content' 0.01090.7995 781.6016406.8984
Module end 'content' 0.81040.0017 1,188.50008.1250
Script end 0.8121  1,196.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4734160.0002
Check MTime0.00150.1818160.0001
Mysql Total
Database connection0.00080.101710.0008
Mysqli_queries0.766594.3864460.0167
Looping result0.00050.0654440.0000
Template Total0.768694.620.3843
Template load0.00250.311320.0013
Template processing0.766194.329220.3830
Template load and register function0.00020.026710.0002
states
state_id_array0.00190.238510.0019
state_identifier_array0.00200.249320.0010
Override
Cache load0.00200.2490240.0001
Sytem overhead
Fetch class attribute can translate value0.00140.176810.0014
Fetch class attribute name0.00070.085810.0007
XML
Image XML parsing0.00020.030310.0002
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00070.0918100.0001
String conversion0.00000.003740.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
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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs