Changeset 17694

Show
Ignore:
Timestamp:
09/25/08 14:08:24 (2 months ago)
Author:
rambo
Message:

the value of show_noentry must be checked, the second up=parent_node constraint is redundant

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.core/midcom/helper/_basicnav.php

    r17558 r17694  
    11441144        $collector = midcom_db_topic::new_collector('up', $parent_node); 
    11451145        $collector->add_value_property('id'); 
    1146         $collector->add_constraint('up', '=', $parent_node); 
    11471146        $collector->add_constraint('component', '<>', ''); 
    11481147        $collector->add_constraint('name', '<>', ''); 
    1149         $collector->add_constraint('metadata.navnoentry', '=', 0); 
     1148        if (!$show_noentry) 
     1149        { 
     1150            // Hide "noentry" items 
     1151            $collector->add_constraint('metadata.navnoentry', '=', 0); 
     1152        } 
    11501153 
    11511154        // FIXME: This is a workaround for some MultiLang bugs