Fix to the selfservice open case ajax action

This commit is contained in:
gustavo
2011-03-18 18:58:52 -04:00
parent dca24cc39d
commit d3b7fae8c4
2 changed files with 4 additions and 4 deletions

View File

@@ -55,9 +55,9 @@ class Ajax
G::LoadClass('pmScript'); G::LoadClass('pmScript');
G::LoadClass('case'); G::LoadClass('case');
$PRO_UID = $_SESSION['PROCESS']; $PRO_UID = isset($_SESSION['PROCESS'])?$_SESSION['PROCESS']:'';
$TAS_UID = $_SESSION['TASK']; $TAS_UID = isset($_SESSION['TASK'])?$_SESSION['TASK']:'';
$APP_UID = $_SESSION['APPLICATION']; $APP_UID = isset($_SESSION['APPLICATION'])?$_SESSION['APPLICATION']:'';
$tree = Array(); $tree = Array();
$case = new Cases; $case = new Cases;
$step = new Step; $step = new Step;

View File

@@ -12,7 +12,7 @@ Ext.onReady(function(){
Ext.QuickTips.init(); Ext.QuickTips.init();
showCaseNavigatorPanel = function(steps, information, action) { showCaseNavigatorPanel = function(steps, information, action) {
if(steps==false&&action==false){ if(steps==false&&action==false&&typeof(treeToReviseTitle)!='undefined'){
var treeToRevise = new Ext.tree.TreePanel({ var treeToRevise = new Ext.tree.TreePanel({
title: treeToReviseTitle, title: treeToReviseTitle,
width: 250, width: 250,