- Don't loose the current context (current Org)

- When switching Org, reload the current pages

SVN:trunk[285]
This commit is contained in:
Denis Flaven
2010-01-19 12:39:28 +00:00
parent 24713204af
commit 0e7297087b
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ EOF
{
// Combo box to select the organization
$this->AddToMenu("<div id=\"OrganizationSelection\">
<form style=\"display:inline\" action=\"./UI.php\"><select style=\"width:150px;font-size:x-small\" name=\"org_id\" title=\"Pick an organization\" onChange=\"this.form.submit();\">\n");
<form style=\"display:inline\" action=\"{$_SERVER['PHP_SELF']}\"><select style=\"width:150px;font-size:x-small\" name=\"org_id\" title=\"Pick an organization\" onChange=\"this.form.submit();\">\n");
// List of visible Organizations
$oContext = new UserContext();
$oSearchFilter = $oContext->NewFilter("bizOrganization");

View File

@@ -34,7 +34,7 @@ class DisplayTemplate
$oBlock = DisplayBlock::FromTemplate($sOuterTag);
if (is_object($oBlock))
{
$oBlock->Display($oPage, 'block_'.self::$iBlockCount);
$oBlock->Display($oPage, 'block_'.self::$iBlockCount, $aParams);
}
self::$iBlockCount++;
}