Changeset 1671 for trunk/workflow


Ignore:
Timestamp:
11/18/09 15:14:28 (14 years ago)
Author:
viani
Message:

Ticket #766 - Correção de bug na função wf_get_activity_link_by_id

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/local/functions/function.wf_get_activity_link_by_id.php

    r795 r1671  
    55 * @return string url para a atividade passada como parametro 
    66 * @license http://www.gnu.org/copyleft/gpl.html GPL 
    7  * @package Workflow  
    8  * @subpackage local  
     7 * @package Workflow 
     8 * @subpackage local 
    99 * @access public 
    1010 * @author Alessandra Heil 
     
    1313{ 
    1414        /* load some variables */ 
    15         $instance =& $GLOBALS['workflow']['wf_runtime']; 
    16          
    17         $currentActivity = $instance->activity_id; 
    18         $instanceId = $instance->instance_id; 
    1915        $urlBase = $_SERVER['SERVER_NAME']; 
    20          
    21         if (isset($currentActivity) && ($instanceId != 0)) 
    22                 $output = "http://".$urlBase."/index.php?menuaction=workflow.run_activity.go&activity_id=$activityId"; 
    23         else 
    24                 $output = "http://".$urlBase."/workflow/index.php?start_tab=0"; 
    25          
     16 
     17        $output = "http://".$urlBase."/index.php?menuaction=workflow.run_activity.go&activity_id=$activityId"; 
     18 
    2619        return $output ; 
    2720} 
Note: See TracChangeset for help on using the changeset viewer.