Commit 39a3ef11 authored by Christoph Thelen's avatar Christoph Thelen
Browse files

Do not allow session names consisting of whitespaces only

parent a4387bcc
......@@ -257,8 +257,8 @@ Ext.define("ARSnova.controller.Sessions", {
create: function (options) {
var session = Ext.create('ARSnova.model.Session', {
type: 'session',
shortName: options.shortName,
shortName: options.shortName.trim(),
creator: localStorage.getItem('login'),
courseId: options.courseId,
courseType: options.courseType,
Supports Markdown
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