Skip to content
Snippets Groups Projects
Commit 11aa5788 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Merge branch 'fixSessionInfoImport' into 'master'

SessionInfo integration for session import

When importing a session, the "public pool" attributes are handled, too, to populate the session info.

See merge request !23
parents f9311252 59a4e9c5
Branches
Tags
1 merge request!23SessionInfo integration for session import
Pipeline #2149 passed with stages
......@@ -28,7 +28,7 @@ Ext.define("ARSnova.controller.SessionImport", {
/**
* Import a single session from a JSON file.
*/
importSession: function (jsonContent, publicPoolAttributes) {
importSession: function (jsonContent) {
var me = this;
var session = {
......@@ -36,7 +36,7 @@ Ext.define("ARSnova.controller.SessionImport", {
shortName: jsonContent.session.shortName,
active: jsonContent.session.active,
sessionFeature: jsonContent.sessionFeature,
publicPool: publicPoolAttributes
publicPool: jsonContent.session.publicPool
};
jsonContent.questions.forEach(function (q) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment