Sfoglia il codice sorgente

Fix for #404: context was lost when performing a drill-down in the flash navigator.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1568 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 anni fa
parent
commit
ec81d24017
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      pages/UI.php

+ 2 - 1
pages/UI.php

@@ -2032,7 +2032,8 @@ EOF
 		$oP->SetCurrentTab(Dict::S('UI:RelationshipGraph'));
 		$width = 1000;
 		$height = 700;
-		$sParams = "pWidth=$width&pHeight=$height&drillUrl=".urlencode(utils::GetAbsoluteUrlAppRoot().'pages/UI.php?operation=details')."&displayController=false&xmlUrl=".urlencode("./xml.navigator.php")."&obj_class=$sClass&obj_id=$id&relation=$sRelation";
+		$sDrillUrl = utils::GetAbsoluteUrlAppRoot().'pages/UI.php?operation=details&'.$oAppContext->GetForLink();
+		$sParams = "pWidth=$width&pHeight=$height&drillUrl=".urlencode($sDrillUrl)."&displayController=false&xmlUrl=".urlencode("./xml.navigator.php")."&obj_class=$sClass&obj_id=$id&relation=$sRelation";
 		
 		$oP->add("<div style=\"z-index:1;background:white\"><object style=\"z-index:2\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$width\" height=\"$height\" id=\"navigator\" align=\"middle\">
 		<param name=\"allowScriptAccess\" value=\"sameDomain\" />