Option Datatype problem with required flag.

Author Message

Daniele Nocentini

Wednesday 05 July 2006 1:50:17 am

I have made a contact form with two option datatype with required flag, I have tow questions:
1) why when I look my contact form the first options for the datatype is checked?
2) If I modify the "content\datatype\collect\ezoption.tpl" and I remove the this control:

{section show=$OptionList:item.id|eq($option_id)}checked="checked"{/section}

the first option is not checked but If I submit the contact form, ezpublish don't give me an error for option not checked but also if is required.

Antica Bottega Digitale srl
http://www.abd.it

Kristof Coomans

Wednesday 05 July 2006 4:33:07 am

Hello Daniele

I think these are bugs, I get the same results here on a trunk installation.
Please report them in the bug tracker. Thank you.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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 19 2025 04:24:14
Script start
Timing: Jan 19 2025 04:24:14
Module start 'layout'
Timing: Jan 19 2025 04:24:14
Module start 'content'
Timing: Jan 19 2025 04:24:14
Module end 'content'
Timing: Jan 19 2025 04:24:14
Script end

Main resources:

Total runtime0.0156 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2813152.6406
Module start 'layout' 0.00630.0026 741.921939.4766
Module start 'content' 0.00890.0047 781.398489.4609
Module end 'content' 0.01360.0019 870.859430.3047
Script end 0.0155  901.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002616.6015140.0002
Check MTime0.00117.0780140.0001
Mysql Total
Database connection0.00095.521110.0009
Mysqli_queries0.002516.002430.0008
Looping result0.00000.090410.0000
Template Total0.001610.410.0016
Template load0.00095.567010.0009
Template processing0.00074.808510.0007
Override
Cache load0.00063.863110.0006
General
dbfile0.00085.073680.0001
String conversion0.00000.046040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs