Minor context bugfix
This commit is contained in:
parent
6082fe9d02
commit
315794ec86
2
amd/build/page-edit-plan.min.js
vendored
2
amd/build/page-edit-plan.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
amd/build/studyplan-editor-components.min.js
vendored
2
amd/build/studyplan-editor-components.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -68,6 +68,7 @@ export function init(contextid,categoryid) {
|
|||
slots : 4,
|
||||
startdate: '2020-08-01',
|
||||
enddate: '',
|
||||
context: contextid,
|
||||
aggregation: 'bistate',
|
||||
aggregation_config: '',
|
||||
}
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue
Block a user