Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event list is not populated when new service is added. #7

Open
farooqsultan opened this issue Apr 6, 2018 · 3 comments
Open

event list is not populated when new service is added. #7

farooqsultan opened this issue Apr 6, 2018 · 3 comments

Comments

@farooqsultan
Copy link

screen shot
capture

@valentineus
Copy link
Owner

What theme is used?
Standard or third-party?

As displayed in the default theme?
Where can I get your theme?

@HobieCat
Copy link

Hello,

same issue here on moodle 3.5.2 (Build: 20180910) with the adaptable theme to its latest version.

Using the default boost theme shows the correct list.

Cheers!

@HobieCat
Copy link

HobieCat commented Nov 9, 2018

Hello there,

looks like I've solved this issue in an extremely simple way.
Reading this Moodle doc, I noticed that "You can also supply a string as a fourth parameter to specify a label that will appear on the right of the element".

So simply please change line 89 of classes/service_form.php (in the the v3.0.0-stable branch) to be:

$events[$event['component']][] =& $mform->createElement('checkbox', $eventname, null, $event['eventname']);

and now the list looks ok with both the default Boost theme and adaptable, which I'm using.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants