|
|
|
@ -43,7 +43,7 @@ class SystemMessagesController < ApplicationController
|
|
|
|
|
@system_messages.user_id = User.current.id
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
if @system_messages.save
|
|
|
|
|
format.html {redirect_to user_message_path(User.current, :type => "system_messages")}
|
|
|
|
|
format.html {redirect_to user_system_messages_path(User.current)}
|
|
|
|
|
flash[:notice] = l(:notice_successful_message)
|
|
|
|
|
else
|
|
|
|
|
if params[:system_messages][:description].empty?
|
|
|
|
|