Changeset 17934

Show
Ignore:
Timestamp:
10/05/08 20:48:00 (2 months ago)
Author:
flack
Message:

new caching mechanism for node information, should allow to replace the find_node_by_component calls that are messing up the navigation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.core/config/config.inc

    r4481 r17934  
    11'default_workgroup_filter' => 'all', 
    22'owner_organization' => null, // Set to GUID of org_openpsa_organization 
     3'auto_init' => true, 
  • trunk/midcom/org.openpsa.invoices/handler/list.php

    r17927 r17934  
    2323    { 
    2424        // Locate Contacts node for linking 
    25         $this->_request_data['contacts_node'] = midcom_helper_find_node_by_component('org.openpsa.contacts'); 
     25        $structure = new org_openpsa_core_structure(); 
     26        $this->_request_data['contacts_url'] = $structure->get_node_url('org.openpsa.contacts'); 
    2627    } 
    2728 
  • trunk/midcom/org.openpsa.invoices/style/show-list-item.php

    r17871 r17934  
    2323    if ($data['customer']) 
    2424    { 
    25         if ($data['contacts_node']) 
     25        if ($data['contacts_url']) 
    2626        { 
    27             echo "<a href=\"{$data['contacts_node'][MIDCOM_NAV_FULLURL]}group/{$data['customer']->guid}/\">{$data['customer']->official}</a>"; 
     27            echo "<a href=\"{$data['contacts_url']}group/{$data['customer']->guid}/\">{$data['customer']->official}</a>"; 
    2828        } 
    2929        else