ezobjectrelationlist validation

Author Message

Andreas Adelsberger

Monday 14 April 2008 2:00:25 am

hi, how can I add a default option for a ezobjecrelationlist with something like "please choose" for a required attribute? It is a single select list.

When I put in

<option value="">please choose</option>

the attribute is accepted and I don't get the validation error as expected! I really don't want to modify the class of ezbojectrelationlisttype.php!

Thanks in advance.

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

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 09:57:43
Script start
Timing: Jan 19 2025 09:57:43
Module start 'layout'
Timing: Jan 19 2025 09:57:43
Module start 'content'
Timing: Jan 19 2025 09:57:45
Module end 'content'
Timing: Jan 19 2025 09:57:45
Script end

Main resources:

Total runtime1.5041 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.0061 589.1484152.6250
Module start 'layout' 0.00610.0036 741.773439.4453
Module start 'content' 0.00981.4926 781.2188463.7969
Module end 'content' 1.50230.0017 1,245.01568.1641
Script end 1.5040  1,253.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00740.4909160.0005
Check MTime0.00160.1038160.0001
Mysql Total
Database connection0.00060.040110.0006
Mysqli_queries1.453996.6679460.0316
Looping result0.00050.0328440.0000
Template Total1.461097.120.7305
Template load0.00210.140920.0011
Template processing1.458896.993920.7294
Template load and register function0.00010.006410.0001
states
state_id_array0.00190.128110.0019
state_identifier_array0.00230.150220.0011
Override
Cache load0.00170.112290.0002
Sytem overhead
Fetch class attribute can translate value0.00070.049510.0007
Fetch class attribute name0.00130.088020.0007
XML
Image XML parsing0.00050.034310.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00260.1753160.0002
String conversion0.00000.000540.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/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