Block views are messed-up when re-order with drag&drop

Author Message

Denitsa M.

Monday 14 March 2011 5:46:40 am

Hello,

for some time we've been testing the 4.4 release with ezflow 2.2 stable from gidhub. The following problem appeared during test of ezflow edition in backend - let's say I have an object with ezpage datatype attribute, in which I have X zones with blocks inside of these. When I edit the object and I change block order in any of the zones using drag&drop, I see the blocks moved correctly (in the new order) and I publish the object. The interesting part comes here - I go in frontend, and I see the blocks with new order, but the overrides are lost - I see standard block/view/view.tpl loaded instead of my overrides (which have been loading fine before the change).

Some research lead me to the real issue - if I have block1 (with view1) and block2 (with view2) into a zone, and I do grad&drop on block2, placing it infront of block1, after publishing the object, these 2 blocks have their VIEWS swapped - in short, after the change is published, system now see block1 with view2 and block2 with view1, for which ofc I do not have overrides, so it loads block/view/view.tpl. Debugging $block variable in view.tpl shows that $block.view params for these two blocks have now swapped values.

Even more interesting is this - when I re-edit the object and I use arrows to change block order (no matter how, just do some order changes on the messed up blocks), after publish in frontend I see CORRECT overrides, because now the views of these block are CORRECT again.

eZP is not installed via browser, it is direct installation, and ezflow, ezwebin and ezjscore are added after that, and at latest stable versions.

Has anyone had this issue, if yes - did you solve it and how? Any suggestions how to solve it?

For clarification, in block.ini definitions of block1 and block2 are correct, and these blocks DO NOT HAVE views with the same identifiers or anything, and view1 only belongs to block1, as well as view2 belongs only to block2.

Iguana IT - http://www.iguanait.com

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 00:56:09
Script start
Timing: Jan 18 2025 00:56:09
Module start 'layout'
Timing: Jan 18 2025 00:56:09
Module start 'content'
Timing: Jan 18 2025 00:56:09
Module end 'content'
Timing: Jan 18 2025 00:56:09
Script end

Main resources:

Total runtime0.1530 sec
Peak memory usage4,096.0000 KB
Database Queries48

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.1875152.6563
Module start 'layout' 0.00590.0034 740.843839.5156
Module start 'content' 0.00940.1421 780.3594436.3516
Module end 'content' 0.15150.0015 1,216.71098.1016
Script end 0.1530  1,224.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.0218160.0002
Check MTime0.00130.8528160.0001
Mysql Total
Database connection0.00130.848910.0013
Mysqli_queries0.111873.0387480.0023
Looping result0.00050.3003460.0000
Template Total0.116576.120.0582
Template load0.00211.360720.0010
Template processing0.114474.767220.0572
Template load and register function0.00020.107210.0002
states
state_id_array0.00110.726810.0011
state_identifier_array0.00090.619720.0005
Override
Cache load0.00171.1053100.0002
Sytem overhead
Fetch class attribute can translate value0.00060.402010.0006
Fetch class attribute name0.00090.569210.0009
XML
Image XML parsing0.00020.137310.0002
class_abstraction
Instantiating content class attribute0.00000.005910.0000
General
dbfile0.00241.5717100.0002
String conversion0.00000.005340.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
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: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs