File tree 4 files changed +22
-8
lines changed
4 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 1
- name : Run all tests for Moodle 4.0+
1
+ name : ci
2
2
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- workflow_group_40_plus_ci :
7
- uses : catalyst/catalyst-moodle-workflows/.github/workflows/group-40-plus-ci.yml@main
6
+ ci :
7
+ uses : catalyst/catalyst-moodle-workflows/.github/workflows/ci.yml@main
8
+ with :
9
+ disable_behat : true
10
+ disable_grunt : true
11
+ disable_phpcpd : true
Original file line number Diff line number Diff line change @@ -123,6 +123,10 @@ function observation_supports($feature) {
123
123
return true ;
124
124
case FEATURE_BACKUP_MOODLE2 :
125
125
return true ;
126
+ // Activity plugins default this to true, so explicity set to false.
127
+ // Since it is not supported by mod_observation.
128
+ case FEATURE_MOD_INTRO :
129
+ return false ;
126
130
default :
127
131
return null ;
128
132
}
Original file line number Diff line number Diff line change @@ -79,12 +79,17 @@ public function data_preprocessing(&$defaultvalues) {
79
79
}
80
80
81
81
// Editing, find the defaults and update the form values.
82
- $ obsdata = $ DB ->get_record ('observation ' , array ('id ' => $ obsid ));
82
+ $ obsdata = ( object ) $ DB ->get_record ('observation ' , array ('id ' => $ obsid ));
83
83
84
- $ defaultvalues ['observerins_editor ' ]->text = $ obsdata ->observer_ins ;
85
- $ defaultvalues ['observerins_editor ' ]->format = $ obsdata ->observer_ins_f ;
86
- $ defaultvalues ['observeeins_editor ' ]->text = $ obsdata ->observee_ins ;
87
- $ defaultvalues ['observeeins_editor ' ]->format = $ obsdata ->observee_ins_f ;
84
+ $ defaultvalues ['observerins_editor ' ] = (object ) [
85
+ 'text ' => $ obsdata ->observer_ins ,
86
+ 'format ' => $ obsdata ->observer_ins_f
87
+ ];
88
+
89
+ $ defaultvalues ['observeeins_editor ' ] = (object ) [
90
+ 'text ' => $ obsdata ->observee_ins ,
91
+ 'format ' => $ obsdata ->observee_ins_f
92
+ ];
88
93
89
94
return ;
90
95
}
Original file line number Diff line number Diff line change 30
30
$ plugin ->requires = 2022041900 ;
31
31
$ plugin ->component = 'mod_observation ' ;
32
32
$ plugin ->maturity = MATURITY_STABLE ;
33
+ $ plugin ->supported = [40 , 41 ];
You can’t perform that action at this time.
0 commit comments