[LON-CAPA-cvs] cvs: loncom /interface lonuserutils.pm
raeburn
raeburn@source.lon-capa.org
Mon, 05 Jan 2009 05:31:03 -0000
raeburn Mon Jan 5 05:31:03 2009 EDT
Modified files:
/loncom/interface lonuserutils.pm
Log:
Bug 5807.
- A 'Display List of Users' button is shown the first time the List Users page is displayed. No users are shown at this stage.
- Thereafter the button reverts to 'Update Display', and users are listed based on the selected criteria.
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.77 loncom/interface/lonuserutils.pm:1.78
--- loncom/interface/lonuserutils.pm:1.77 Fri Dec 12 16:50:53 2008
+++ loncom/interface/lonuserutils.pm Mon Jan 5 05:31:03 2009
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Utility functions for managing LON-CAPA user accounts
#
-# $Id: lonuserutils.pm,v 1.77 2008/12/12 16:50:53 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.78 2009/01/05 05:31:03 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1316,6 +1316,12 @@
($cnum,$cdom) = &get_course_identity();
$r->print(§ion_group_filter($cnum,$cdom));
}
+ if ($env{'form.phase'} eq '') {
+ $r->print('<br /><br />'.&list_submit_button(&mt('Display List of Users')).
+ "\n</p>\n".
+ '<input type="hidden" name="phase" value="" /></form>');
+ return;
+ }
if (!(($context eq 'domain') && ($env{'form.roletype'} eq 'course'))) {
$r->print(' '.&list_submit_button(&mt('Update Display')).
"\n</p>\n");