Commit 0c5c4c46e6433b3279276c41433bdd5a0fe5522d

Authored by omar
1 parent 8f972109

Filter selected value Works correctly Now


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2113 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsBL.php
@@ -35,7 +35,7 @@ if(checkSession()) { @@ -35,7 +35,7 @@ if(checkSession()) {
35 global $default; 35 global $default;
36 36
37 $oPatternCustom->addHtml(renderHeading("Current System Units")); // Create the Heading 37 $oPatternCustom->addHtml(renderHeading("Current System Units")); // Create the Heading
38 - 38 +
39 $oPatternCustom->addHtml(getFilterOptions($fOrgID)); 39 $oPatternCustom->addHtml(getFilterOptions($fOrgID));
40 40
41 $main->setFormAction($_SERVER['PHP_SELF']); 41 $main->setFormAction($_SERVER['PHP_SELF']);
presentation/lookAndFeel/knowledgeTree/administration/unitmanagement/listUnitsUI.inc
@@ -21,8 +21,9 @@ function getOrgDisplay($fOrgID, $iSelectedValue = 0) { @@ -21,8 +21,9 @@ function getOrgDisplay($fOrgID, $iSelectedValue = 0) {
21 // if this is the system administrator, prepend group names with unit name 21 // if this is the system administrator, prepend group names with unit name
22 $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID"); 22 $oPatternListBox = & new PatternListBox($default->owl_organisations_table, "name", "id", "fOrgID");
23 23
24 - if ($iSelectedValue != 0) {  
25 - $oPatternListBox->setSelectedValue($iSelectedValue); 24 + if ($fOrgID != 0) {
  25 + //$oPatternListBox->setSelectedValue($iSelectedValue);
  26 + $oPatternListBox->setSelectedValue($fOrgID);
26 } 27 }
27 28
28 return $oPatternListBox->render(); 29 return $oPatternListBox->render();