FIxed bugs from code style fix

This commit is contained in:
PMKuipers 2024-07-10 09:08:12 +02:00
parent 31c4e758ea
commit ae8f2b6841
5 changed files with 9 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1278,7 +1278,7 @@ export default {
objCopy(args, this.editdata, PERIOD_EDITOR_FIELDS); objCopy(args, this.editdata, PERIOD_EDITOR_FIELDS);
call([{ call([{
methodname: 'local_treestudyplanEdit_period', methodname: 'local_treestudyplan_edit_period',
args: args args: args
}])[0].then((response) => { }])[0].then((response) => {
objCopy(self.value, response, PERIOD_EDITOR_FIELDS); objCopy(self.value, response, PERIOD_EDITOR_FIELDS);
@ -1614,7 +1614,7 @@ export default {
let editedline = this.edit.studyline.data; let editedline = this.edit.studyline.data;
let originalline = this.edit.studyline.original; let originalline = this.edit.studyline.original;
call([{ call([{
methodname: 'local_treestudyplanEdit_studyline', methodname: 'local_treestudyplan_edit_studyline',
args: {'id': editedline.id, args: {'id': editedline.id,
'name': editedline.name, 'name': editedline.name,
'shortname': editedline.shortname, 'shortname': editedline.shortname,
@ -3218,7 +3218,7 @@ export default {
}, },
updateItem() { updateItem() {
call([{ call([{
methodname: 'local_treestudyplanEdit_studyitem', methodname: 'local_treestudyplan_edit_studyitem',
args: { args: {
'id': this.value.id, 'id': this.value.id,
'conditions': this.value.conditions, 'conditions': this.value.conditions,
@ -3684,7 +3684,7 @@ export default {
}, },
updateConditions() { updateConditions() {
call([{ call([{
methodname: 'local_treestudyplanEdit_studyitem', methodname: 'local_treestudyplan_edit_studyitem',
args: { args: {
'id': this.value.id, 'id': this.value.id,
'conditions': this.value.conditions, 'conditions': this.value.conditions,

View File

@ -60,8 +60,8 @@ if (!is_dir($builddir)) {
} }
} }
if (file_exists($zipfile)) { if (file_exists($zipname)) {
print("Zip file '{$zipfile}' already exists. Exiting...\n"); print("Zip file '{$zipname}' already exists. Exiting...\n");
exit(1); exit(1);
} }

View File

@ -22,9 +22,8 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->component = 'local_treestudyplan'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494). $plugin->component = 'local_treestudyplan'; // Recommended since 2.0.2 (MDL-26035). Required since 3.0 (MDL-48494).
$plugin->version = 2024062800; // YYYYMMDDHH (year, month, day, iteration). $plugin->version = 2024070801; // YYYYMMDDHH (year, month, day, iteration).
$plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11). $plugin->requires = 2021051700; // YYYYMMDDHH (This is the release version for Moodle 3.11).
$plugin->release = "1.3.1b"; $plugin->release = "1.3.1b";
$plugin->maturity = MATURITY_STABLE; /*MATURITY_STABLE;*/ $plugin->maturity = MATURITY_STABLE; /*MATURITY_STABLE;*/