Commit Graph
10 Commits
Author SHA1 Message Date
Marcin ŁojewskiandGitHub 7649d23052 Manage limit and offset in usersInGroup function
Since user_sql apps don't manage limit and offset in **usersInGroup** function:
`$rows = $this -> helper -> runQuery('getGroupUsers', array('gid' => $gid), false, true);`

The unshareFromGroup function of **Activity** app start a infinity loop : 
```
while (!empty($users)) {
			$this->addNotificationsForGroupUsers($users, 'unshared_by', $share->getNodeId(), $share->getNodeType(), $share->getTarget(), $share->getId());
			$offset += self::USER_BATCH_SIZE;
			$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);
}
```

to fix that, just add offset and limit params to runQuery : 
``` 
$rows = $this -> helper -> runQuery('getGroupUsers', array('gid' => $gid), false, true, ['limit' => $limit, 'offset' => $offset]);
```
2018-05-11 18:28:37 +02:00
Marcin Łojewski ebcdaa813b crypt_type 'drupal' for Drupal 7 authentication 2018-02-18 18:53:33 +01:00
Marcin Łojewski 57c7785a93 Unreleased section in CHANGELOG.me 2018-02-06 22:09:10 +01:00
Marcin Łojewski 743d47f9ac Add required field "bugs", fields "repository", "screenshot" 2018-02-06 22:03:23 +01:00
Marcin Łojewski 2f14ec7832 Updated CHANGELOG.md, name fix 2018-02-06 21:36:50 +01:00
Marcin Łojewski cce53ca00b Changelog updated 2017-12-30 11:21:47 +01:00
Marcin Łojewski 7440949ecb Fix issue: Column autocomplete uses wrong table in "Groups Settings" 2017-12-30 11:19:48 +01:00
Marcin Łojewski 105f5b6762 Autocomplete for PostreSQL 2017-12-30 10:23:52 +01:00
Marcin Łojewski c913d19bb4 Revert appid, update.php. Add changelog file 2017-12-26 16:41:04 +01:00
Marcin Łojewski 45195bcd61 Update code for release of the app in the Nextcloud App Store 2017-12-25 15:06:40 +01:00