Fixed Bug when loading from tiss + typo in lvas_controller

The Bug would ALWAYS appear if Pruefungsinformation is empty at submission.
The Fix replaces the empty string with an dummy div-block.
This maybe has to be checked for all input fields.
This commit is contained in:
Thomas Blazek
2014-04-01 10:25:44 +02:00
parent fcdbb2248a
commit 5aedfa752e
2 changed files with 5 additions and 5 deletions

View File

@@ -52,7 +52,7 @@ class LvasController < ApplicationController
@lva = Lva.find_by_id(params[:lva_id])
@lva.load_tissdata("-2013W")
if @lva.save
redirect_to @lva , notice: 'Lva von TISS geleaden.'
redirect_to @lva , notice: 'Lva von TISS geladen.'
else
redirect_to @lva, action: :compare_tiss
end
@@ -64,7 +64,6 @@ class LvasController < ApplicationController
# POST /lvas.json
def create
@lva = Lva.new(params[:lva])
respond_to do |format|
if @lva.save
@lva.add_semesters