Skip to content
Snippets Groups Projects
Commit 7228a1ca authored by strentini's avatar strentini
Browse files

OO-131 : fix problem with long attachment-filenames in topicAssignment (...

OO-131 : fix problem with long attachment-filenames in topicAssignment ( invalidate form if filename > 100 chars, show error-msg)

--HG--
branch : 80-patch
parent 0ce13738
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,12 @@ public class ProjectEditDetailsFormController extends FormBasicController {
projectTitle.setErrorKey("form.error.project.title.is.empty", null);
return false;
}
// http://jira.openolat.org/browse/OO-131 check for too long filename
if (attachmentFileName.getUploadFileName().length() > 99) {
attachmentFileName.setErrorKey("form.error.project.filenametoolong", null);
return false;
}
return true;
}
......
......@@ -147,6 +147,7 @@ handout_event=Abgabetermin
from.error.date.start.after.end=Starttermin nach Endtermin
form.error.project.title.already.exist=Es existiert bereits ein Thema mit diesem Namen.
form.error.project.title.is.empty=Der Titel darf nicht leer sein.
form.error.project.filenametoolong=Der gewhlte Dateinamen ist zu lang (max 100 Zeichen).
mail.enrolled.to.participant.subject=Wahl des Themas: $projectTitle
mail.enrolled.to.participant.body=*** Das ist eine automatisch generierte Nachricht. Bitte antworten Sie nicht auf diese Nachricht *** \n\nSie haben am $currentDate das Thema "$projectTitle" gew\u00E4hlt.
......
......@@ -120,6 +120,8 @@ form.accountmanagement.no.account.manager.group=No topic authors available.
form.accountmanagement.title=Administer topic authors
form.error.project.title.already.exist=A topic with this title already exists.
form.error.project.title.is.empty=This title is mandatory.
form.error.project.filenametoolong=Filename has to many characters (max 100).
form.modules.dropbox=Drop box
form.modules.returnbox=Return box
form.modules.scoring=Assessment
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment