MDL-13632 Merged from 1.9
This commit is contained in:
+2
-1
@@ -80,7 +80,8 @@ class blog_edit_form extends moodleform {
|
||||
if ($otagsselect =& $mform->getElement('otags')) {
|
||||
$otagsselect->removeOptions();
|
||||
}
|
||||
if ($otags = get_records_sql_menu('SELECT id, name from '.$CFG->prefix.'tag WHERE tagtype=\'official\' ORDER by name ASC')){
|
||||
$namefield = empty($CFG->keeptagnamecase) ? 'name' : 'rawname';
|
||||
if ($otags = get_records_sql_menu('SELECT id, '.$namefield.' from '.$CFG->prefix.'tag WHERE tagtype=\'official\' ORDER by name ASC')){
|
||||
$otagsselect->loadArray($otags);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user