mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-62811' of git://github.com/timhunt/moodle
This commit is contained in:
commit
a766f5dc00
3 changed files with 80 additions and 3 deletions
|
@ -38,8 +38,12 @@ abstract class action_column_base extends column_base {
|
|||
echo '<a title="' . $title . '" href="' . $url . '">' . $OUTPUT->pix_icon($icon, $title) . '</a>';
|
||||
}
|
||||
|
||||
public function get_extra_joins() {
|
||||
return array('qc' => 'JOIN {question_categories} qc ON qc.id = q.category');
|
||||
}
|
||||
|
||||
public function get_required_fields() {
|
||||
// Createdby is required for permission checks.
|
||||
return array('q.id', 'q.createdby');
|
||||
return array('q.id', 'q.createdby', 'qc.contextid');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,8 +69,8 @@ class view {
|
|||
|
||||
/**
|
||||
* Constructor
|
||||
* @param question_edit_contexts $contexts
|
||||
* @param moodle_url $pageurl
|
||||
* @param \question_edit_contexts $contexts
|
||||
* @param \moodle_url $pageurl
|
||||
* @param object $course course settings
|
||||
* @param object $cm (optional) activity settings.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue