Commit 879b8475a47247d0babe3793fa6d5aff972aa8f0

Authored by Michael Joseph
1 parent 5ff69c49

Updated to include all units.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2922 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/foldermanagement/groupFolderLinkUI.inc
... ... @@ -122,7 +122,7 @@ function getGroupDropDown($iGroupID = -1) {
122 122 if (Permission::userIsSystemAdministrator()) {
123 123 $oPatternListBox = & new PatternListBox("$default->groups_table", "name", "id", "fGroupID");
124 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 126 $oPatternListBox->setFromClause("INNER JOIN $default->groups_units_table AS GUL ON ST.id = GUL.group_id");
127 127 }
128 128 $oPatternListBox->setEmptyErrorMessage("There are no groups");
... ...