Minor context bugfix

This commit is contained in:
PMKuipers 2023-08-07 17:03:49 +02:00
parent 6082fe9d02
commit 315794ec86
7 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -68,6 +68,7 @@ export function init(contextid,categoryid) {
slots : 4,
startdate: '2020-08-01',
enddate: '',
context: contextid,
aggregation: 'bistate',
aggregation_config: '',
}

View File

@ -506,6 +506,10 @@ export default {
'variant' : {
type: String,
default() { return "";},
},
'contextid': {
type: Number,
default: 1
}
},
data() {
@ -527,7 +531,7 @@ export default {
name: '',
shortname: '',
description: '',
context_id: 1,
context_id: this.contextid,
periods : 4,
startdate: (new Date()).getFullYear() + '-08-01',
enddate: ((new Date()).getFullYear()+1) + '-08-01',

View File

@ -98,6 +98,7 @@ print $OUTPUT->header();
v-model="create.studyplan"
type="button"
variant="primary"
:contextid='contextid'
><i class='fa fa-plus'></i> <?php t("studyplan_add");?></t-studyplan-edit>
<b-button v-if='!activestudyplan' variant='danger' href='#' role='presentation' @click="import_studyplan "><i class='fa fa-upload'></i> <?php t("advanced_import_from_file");?></b-button>
<b-button v-if='activestudyplan' variant='primary' v-b-toggle.toolbox-sidebar><?php t('opentoolbox') ?></b-button>