Commit 0bdb35f1dff154b29cb40669386309d6f65f02f0
1 parent
ded2e812
Updated to include all units.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2922 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
1 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/groupFolderLinkUI.inc
| @@ -122,7 +122,7 @@ function getGroupDropDown($iGroupID = -1) { | @@ -122,7 +122,7 @@ function getGroupDropDown($iGroupID = -1) { | ||
| 122 | if (Permission::userIsSystemAdministrator()) { | 122 | if (Permission::userIsSystemAdministrator()) { |
| 123 | $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID"); | 123 | $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID"); |
| 124 | } else { | 124 | } else { |
| 125 | - $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID", "GUL.unit_id=" . User::getUnitID($_SESSION["userID"])); | 125 | + $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID", "GUL.unit_id in (" . implode(",", User::getUnitIDs($_SESSION["userID"])) . ")"); |
| 126 | $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table AS GUL ON ST.id = GUL.group_id"); | 126 | $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table AS GUL ON ST.id = GUL.group_id"); |
| 127 | } | 127 | } |
| 128 | $oPatternListBox->setEmptyErrorMessage("There are no groups"); | 128 | $oPatternListBox->setEmptyErrorMessage("There are no groups"); |