69 Commits

Author SHA1 Message Date
Janek Lasocki-Biczysko
0bb7f79d31 MDL-51401 enrol: ensures correct order of roles in UI components
Role sort order was not available in the UI (in JavaScript) due to
the use of PHP assoc arrays and JSON encoding/decoding. This patch
addresses this by sending the roles in a json array, rather than
json object.
2016-10-07 08:30:25 +01:00
Ruslan Kabalin
8292fa8184 MDL-55776 enrol: Optimise enrolled users listing.
Here we optimise SQL queries for enrolled users list. Expensive subquery is
replaced with faster LEFT JOIN and the whole groups filtering component is
aded on demand.
2016-09-19 23:46:28 +02:00
Rajneel Totaram
494fec0071 MDL-51923 enrol: Enrolment list filter 'No Group' shows incorrect count
With contributions from John Okely
2015-10-28 17:34:16 +08:00
John Okely
d5994d38c9 MDL-51586 enrol: Enrolment table displays fullname properly.
When the alternatefullnamedisplay was set to something that
didn't contain 'firstname' then nothing would be displayed
for the user's name.
2015-10-09 15:34:39 +08:00
Davo Smith
bf8f915abc MDL-51341 enrolment: fix 'No group' enrolled user filter 2015-10-07 17:09:15 +01:00
Marina Glancy
afc6a26938 MDL-49746 course: sorting users by last access 2015-08-11 16:15:58 +08:00
Davo Smith
0c9d8172b5 MDL-48074 enrol: option to filter by users 'not in any group' 2015-07-03 09:35:57 +01:00
Nivedita Setru
b6772ac721 MDL-48073 enrol: Fixed group filter resetting erroneously. 2015-01-19 11:24:36 +08:00
Adrian Greeve
95065006c6 MDL-46921 lib: Sorting on additional fields, admin, enrolment pages. 2014-10-09 08:19:49 +08:00
Dave Cooper
e89682d822 MDL-32275 enrol: Last site access column now shows last course access 2014-09-26 10:51:47 +08:00
Damyon Wiese
9673c119f2 MDL-36334 JS: Only print deprecation notices for developers 2014-01-07 16:11:27 +08:00
Damyon Wiese
a66aea5c67 Merge branch 'MDL-36334-master' of https://github.com/andrewnicols/moodle 2014-01-07 16:10:05 +08:00
Andrew Nicols
6fc9488862 MDL-36334 JS: Deprecate YUI galleryversion in enrol 2014-01-07 16:12:55 +11:00
Tony Butler
2b6b37d4f9 MDL-43373 core_enrol: Display enrolments dimmed if outside of start or end times 2014-01-02 17:16:06 +00:00
Petr Škoda
529342bb9f MDL-41002 fix typo causing fatal error on other users page
Credit goes to Bernhard Brandstetter, thanks!
2013-08-04 15:00:53 +02:00
Rajesh Taneja
117e94a050 MDL-40358 Enrolments: Fixed sql when user is suspended 2013-07-10 17:40:20 +10:00
Sam Hemelryk
d9734c91ee MDL-40358 enrol: whitespace clean up 2013-07-10 10:07:10 +12:00
Sam Hemelryk
fc7e5a031e Merge branch 'wip-mdl-40358' of git://github.com/rajeshtaneja/moodle 2013-07-10 09:54:38 +12:00
Frederic Massart
8e8891b76b MDL-40403 libraries: Deprecate get_parent_contexts() 2013-07-09 13:34:44 +08:00
Rajesh Taneja
aa5132140b MDL-40358 Administration: Added group and status filter on user enrolment page 2013-07-01 14:20:21 +08:00
Petr Škoda
31ac2aef26 MDL-39386 fix phpdocs packages in enrol 2013-04-27 13:41:32 +02:00
sam marshall
71638033eb MDL-26956 (3) Enrol: Add filter options to enrolments screen 2013-03-28 10:46:36 +00:00
Rossiani Wijaya
4be3ed4b3d MDL-37396 User Enrollment: fixed missing user from enrolment sub-menu 2013-02-18 10:28:23 +08:00
Petr Škoda
00c269db37 MDL-37559 fix display of multiple roles of other users
Credit goes to Tyron Delean, thanks.
2013-01-19 16:50:38 +01:00
Dan Poltawski
df0b14c3b5 Merge branch 'w51_MDL-37303_m25_enrolinstancestatus' of git://github.com/skodak/moodle 2013-01-08 14:22:11 +08:00
Petr Škoda
3a103fd806 MDL-xxxx show appropriate instance status on user enrolments page 2012-12-26 17:28:09 +01:00
Petr Škoda
e9ca9d3063 MDL-37302 allow admin to unassign any role on enrolment and other users pages 2012-12-26 12:02:08 +01:00
Petr Škoda
483e6f5cde MDL-37302 allow removal of enrol roles if plugin allows it 2012-12-26 11:37:08 +01:00
Tim Hunt
e059c033d9 MDL-35802 enrol other users: should use Show user identity setting.
As part of fixing this, I refactored some common code out of
get_potential_users and search_other_users. Previously, only one of
those bits of code had been updated.
2012-10-05 12:07:26 +01:00
Eloy Lafuente (stronk7)
c740703c18 Merge branch 'w40_MDL-31437_m24_cohortsync' of git://github.com/skodak/moodle
Conflicts:
	lib/upgrade.txt
2012-10-02 22:00:12 +02:00
Dan Poltawski
f7b3ac9427 Merge branch 'w40_MDL-35619_m24_otheravatars' of git://github.com/skodak/moodle 2012-10-02 10:41:47 +08:00
Petr Škoda
e66827464a MDL-35619 fix invalid avatars on other users page 2012-10-01 09:53:11 +02:00
Petr Škoda
7881024ec4 MDL-31437 add group sync option to enrol_cohort
This patch includes following changes and new features:
* Group sync in enrol_cohort plugin.
* Option for editing of role in existing cohort sync instance.
* Group memberships are now restored after enrolments.
* New enrol method for restore of protected group membership.
* New component callback 'restore_group_member' for restore of general plugin group membership.
* New component callback 'restore_role_assignment' for restore of general plugin role assignments.
* Implemented group membership protection in enrolment UI.
* Other minor fixes and cleanup.

Notes:
* The YUI base enrolment page is not reimplemented yet - see MDL-35618.
2012-09-28 21:00:00 +02:00
Tim Hunt
9695ff811b MDL-34657 user sorting: consistent sorting everywhere.
This commit coverts everything in the codebase to use the new
users_order_by_sql function when sorting lists of users. More details in
the bug.

Note that this does not change places where users are displayed in a
sortable table, and the sort order comes from the table.
2012-09-27 12:41:42 +01:00
Petr Škoda
005e57a225 MDL-35052 show all enrolled users in enrol UI included those enrolled via disabled plugins 2012-08-26 16:28:18 +02:00
Petr Škoda
cb94adc252 MDL-34776 improve multiple "NOT IN" enrolment and role related queries 2012-08-18 09:56:25 +02:00
Petr Škoda
4389d18e74 MDL-34851 show enrolment date if there is no start and end of active enrolment
This should help when enrol plugin does not set any start or end of enrolment validity.
2012-08-12 20:46:00 +02:00
Frederic Massart
55bcef2954 MDL-34461 Librairies: Replaced deprecated get_context_instance() 2012-07-23 17:42:05 +08:00
Petr Skoda
c52551dc3c MDL-8249 localise standard role names and descriptions if empty 2012-07-06 08:22:34 +02:00
Andrew Robert Nicols
ce13ea6ceb MDL-31923 Correctly respect hiddenfields and capabilities 2012-03-08 10:05:14 +00:00
Eloy Lafuente (stronk7)
5dbfbacc49 MDL-31831 whitespace clean - take2 2012-03-01 02:20:35 +01:00
Petr Skoda
282b5cc7e3 MDL-30945 add support for unenrolling of individual users + code cleanup 2011-12-28 16:56:46 +01:00
sam marshall
b849c21255 MDL-26647 (8) Support showuseridentity on enrol screen
Includes support for the table display, plus the AJAX, including search. (The fallback version uses user selector so is already supported.)
2011-11-04 13:57:21 +00:00
Sam Hemelryk
75ee207b81 MDL-26770 enrol - Added support for bulk operations by enrol plugins 2011-04-21 10:13:13 +08:00
Sam Hemelryk
884faffda3 MDL-23532 enrol - fixed up SQL indenting and added missing sesskey calls that were removed after refactoring 2011-04-21 10:02:55 +08:00
Sam Hemelryk
291215f441 MDL-23532 enrol - abstracted user enrolment action icons to the enrolment plugin class 2011-04-21 10:02:54 +08:00
Sam Hemelryk
076995bf91 MDL-23532 enrol - fixed regressions after latest weekly and improved moodle_page handling 2011-04-21 10:02:54 +08:00
Sam Hemelryk
cf855c0b7a MDL-23532 enrol - separated AJAX functions from enrol/ajax.php to their respective enrol plugins 2011-04-21 10:02:54 +08:00
Sam Hemelryk
b69ca6bee4 MDL-23532 enrol - moved UI enrolment components from core enrol to their respective enrolment plugins 2011-04-21 10:02:54 +08:00
Petr Skoda
cf717dc26b MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:15:01 +02:00