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

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',
name: options.name,
shortName: options.shortName,
name: options.name.trim(),
shortName: options.shortName.trim(),
creator: localStorage.getItem('login'),
courseId: options.courseId,
courseType: options.courseType,
......
Markdown is supported
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