Permalink
Browse files

MDL-34775 - Forum, RSS - Fixing RSS entries option to be disabled if …

…RSS is not enabled
  • Loading branch information...
1 parent f29e62c commit cf626656c65dc225d8bb050242146b7b0b1cf809 @deraadt deraadt committed with jsnfwlr Feb 26, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/forum/mod_form.php
View
@@ -112,6 +112,7 @@ function definition() {
$choices[50] = '50';
$mform->addElement('select', 'rssarticles', get_string('rssarticles'), $choices);
$mform->addHelpButton('rssarticles', 'rssarticles', 'forum');
+ $mform->disabledIf('rssarticles', 'rsstype', 'eq', '0');
}
//-------------------------------------------------------------------------------

0 comments on commit cf62665

Please sign in to comment.