fetching children, attribute_filter and translations

Author Message

Marc Gibert Ginestà

Tuesday 30 December 2003 9:56:53 am

Hi!

I've seen that when using attribute_filter to fetch child nodes, they are not filtered based on the current translation I'm using.

For example, if I have 2 childs of the current node, each with 3 translations, when I fetch the childs and use attribute_filter to filter them, each child that matches the filter is returned as many times as translations.

I've seen from the query on the DB that when matching attributes on the ezcontentobject_attribute table, the language_code field is not used, so each child is returned as many times as translations.

Is there any way to fix this?

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 07:22:49
Script start
Timing: Jan 19 2025 07:22:49
Module start 'layout'
Timing: Jan 19 2025 07:22:49
Module start 'content'
Timing: Jan 19 2025 07:22:49
Module end 'content'
Timing: Jan 19 2025 07:22:49
Script end

Main resources:

Total runtime0.6197 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.0072 590.7109152.6406
Module start 'layout' 0.00720.0055 743.351639.4922
Module start 'content' 0.01280.6053 782.8438398.8828
Module end 'content' 0.61810.0016 1,181.72668.1250
Script end 0.6197  1,189.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.5564160.0002
Check MTime0.00140.2193160.0001
Mysql Total
Database connection0.00090.138410.0009
Mysqli_queries0.580593.6801460.0126
Looping result0.00060.0948440.0000
Template Total0.580293.620.2901
Template load0.00200.315020.0010
Template processing0.578293.300620.2891
Template load and register function0.00020.039710.0002
states
state_id_array0.00150.238310.0015
state_identifier_array0.00110.185120.0006
Override
Cache load0.00150.245980.0002
Sytem overhead
Fetch class attribute can translate value0.00050.074210.0005
Fetch class attribute name0.00070.111510.0007
XML
Image XML parsing0.00010.017210.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00130.2022100.0001
String conversion0.00000.001740.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