Changeset 17935

Show
Ignore:
Timestamp:
10/05/08 21:12:56 (2 months ago)
Author:
flack
Message:

use the new structure methods

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/org.openpsa.projects/handler/project/list.php

    r17565 r17935  
    270270    { 
    271271        // Locate Contacts node for linking 
    272         $this->_request_data['contacts_node'] = midcom_helper_find_node_by_component('org.openpsa.contacts'); 
     272        $structure = new org_openpsa_core_structure(); 
     273        $this->_request_data['contacts_url'] = $structure->get_node_url('org.openpsa.contacts'); 
    273274 
    274275        if ($this->_request_data['view'] == 'all') 
  • trunk/midcom/org.openpsa.projects/handler/task/list.php

    r17904 r17935  
    7979        $this->_request_data['tasks'] = Array(); 
    8080 
    81         $this->_request_data['contacts_node'] = midcom_helper_find_node_by_component('org.openpsa.contacts'); 
     81        $structure = new org_openpsa_core_structure(); 
     82        $this->_request_data['contacts_url'] = $structure->get_node_url('org.openpsa.contacts'); 
    8283        $this->_request_data['sales_node'] = midcom_helper_find_node_by_component('org.openpsa.sales'); 
    8384        $this->_request_data['prefix'] = $_MIDCOM->get_context_data(MIDCOM_CONTEXT_ANCHORPREFIX); 
     
    546547                { 
    547548                    $customer = new org_openpsa_contacts_group($task->customer); 
    548                     $customer_url = "{$data['contacts_node'][MIDCOM_NAV_FULLURL]}group/{$customer->guid}"; 
     549                    $customer_url = "{$data['contacts_url']}group/{$customer->guid}"; 
    549550                    $html = "<a href='{$customer_url}'>{$customer->official}</a>"; 
    550551                } 
  • trunk/midcom/org.openpsa.projects/style/show-project-list-status-item.php

    r5048 r17935  
    1414    <td><?php echo $manager_card->show_inline(); ?></td> 
    1515    <td><?php 
    16     if ($data['contacts_node']) 
     16    if ($data['contacts_url']) 
    1717    { 
    18         echo "<a href=\"{$data['contacts_node'][MIDCOM_NAV_FULLURL]}group/{$customer->guid}/\">{$customer->official}</a>"; 
     18        echo "<a href=\"{$data['contacts_url']}group/{$customer->guid}/\">{$customer->official}</a>"; 
    1919    } 
    2020    else 
  • trunk/midcom/org.openpsa.projects/style/show-task_table-item.php

    r17668 r17935  
    22//$data =& $_MIDCOM->get_custom_context_data('request_data'); 
    33 
    4 $contacts_node =& $data['contacts_node']; 
    54$sales_node =& $data['sales_node']; 
    65