problem with edit gui for ezdate

Author Message

Marko Žmak

Monday 21 August 2006 2:30:53 am

I have a class that has a date attribute. On my user site I made a custom template for editing this class. Depending on some parameters this template sometimes displays the edit gui for the date attribute, and sometimes doesn't.
When the gui is displayed, everything works ok, the date is set to the value selected by the user.

But when the gui isn't displayed (and therefore there are no POST variables for this attribute), the date attribute is set to empty value. I think that this is wrong behaviour and that the date attribute should be unchanged when there's no edit gui for it.

For example, the XML field and text line attributes work like that. They don't change when there's no gui displayed.

Is this a bug, or this is made on purpose? Why the behaviour is different for the date attribute?

P.S. I didn't check for other attribute types, but I think that it happens also with checkbox attributes.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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 20 2025 23:41:01
Script start
Timing: Jan 20 2025 23:41:01
Module start 'layout'
Timing: Jan 20 2025 23:41:01
Module start 'content'
Timing: Jan 20 2025 23:41:02
Module end 'content'
Timing: Jan 20 2025 23:41:02
Script end

Main resources:

Total runtime1.5050 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.0075 587.9375151.2109
Module start 'layout' 0.00750.0074 739.148436.6484
Module start 'content' 0.01501.4891 775.7969496.5156
Module end 'content' 1.50410.0009 1,272.31257.8438
Script end 1.5050  1,280.1563 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2546160.0002
Check MTime0.00150.0986160.0001
Mysql Total
Database connection0.00060.042910.0006
Mysqli_queries1.455296.6872460.0316
Looping result0.00060.0421440.0000
Template Total1.458296.920.7291
Template load0.00320.210320.0016
Template processing1.455096.675020.7275
Template load and register function0.00020.015910.0002
states
state_id_array0.00080.053210.0008
state_identifier_array0.00180.118720.0009
Override
Cache load0.00250.1635100.0002
Sytem overhead
Fetch class attribute can translate value0.00080.054010.0008
Fetch class attribute name0.00090.062320.0005
XML
Image XML parsing0.00060.043010.0006
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00090.0599180.0001
String conversion0.00000.000740.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
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 6

Time used to render debug report: 0.0001 secs