Too many users (297) to show

Too many users (297) to show

by Graham Paull -
Number of replies: 8

Is there anyway I can remove this limit Too many users (297) to show, I would like it to show around 500 users, this is only for a short time then I can change it back.

For those who are wondering what I am on about, I have attached an image.

Thanks,

Moodle 2.0.2+ (Build: 20110330)


Attachment SS.jpg
Average of ratings: -
In reply to Graham Paull

Re: Too many users (297) to show

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Look in admin/roles/lib.php. Find the bit that says:

abstract class role_assign_user_selector_base extends user_selector_base {
const MAX_USERS_PER_PAGE = 100;

(Around line 988). Change 100 to 500 there.

Average of ratings: Useful (1)
In reply to Tim Hunt

Re: Too many users (297) to show

by Graham Paull -

Hi Tim,

Thanks for the reply, unfortunatley this did not work, I restarted the server, cleared caches etc without success.

is there anything else you could suggest ?

In reply to Graham Paull

Re: Too many users (297) to show

by Paul Hodgson -

We have tried this too - we need simply to add all users to a group in a block.

Any other way to force this?

Many thanks,

In reply to Paul Hodgson

Re: Too many users (297) to show

by faruq f -
Any update on this?
In reply to faruq f

Re: Too many users (297) to show

by Tony Holt -

I've followed Tim Hunt's suggestion and this worked fine for me,


Edited the file directly on the server using SSH

restarted apache with

/etc/init.d/apache2 restart

Though a full server restart should work... I'm wondering if you guy's have edited the wrong file or are one a different version to me??

Perhaps you need to dump / clear any php accelerator systems you have??

In reply to Tony Holt

Re: Too many users (297) to show

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers
I created a tracker for this, please vote: http://tracker.moodle.org/browse/MDL-36395
In reply to Richard van Iwaarden

Re: Too many users (297) to show

by Derek Chirnside -

I don't know Richard.

You may find that this is regarded as a feature not a bug.

The question may be: How do you select all users in the scenario you describe?  This seems a reasonable thing to ask.  I'd check the forums and tracker some more.

My work around is to type in random letters and gradually choose the users.  smile  Not helpful I know.

-Derek

In reply to Derek Chirnside

Re: Too many users (297) to show

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers

I do the same thing. I tried to get some of our staff into a course, group or cohort. Staff can be recognized by there Email adress or department. Department gives to many hits. So does Email.

I started to type a@company.com, then b@company.com and this 26 times to find all the staff I wanted....

If this is not a bug it sure is an interesting feature...