* fix bug for get groups with program.

This commit is contained in:
z
2020-06-23 16:59:41 +08:00
parent ef74268f70
commit bf1912f0d6
+2 -5
View File
@@ -27,18 +27,15 @@ class group extends control
/**
* Browse groups.
*
* @param int $companyID
* @access public
* @return void
*/
public function browse($companyID = 0)
public function browse()
{
if($companyID == 0) $companyID = $this->app->company->id;
$title = $this->lang->company->orgView . $this->lang->colon . $this->lang->group->browse;
$position[] = $this->lang->group->browse;
$groups = $this->group->getList($companyID);
$groups = $this->group->getList();
$groupUsers = array();
foreach($groups as $group) $groupUsers[$group->id] = $this->group->getUserPairs($group->id);