present? instead of !blank?

This commit is contained in:
Karel Picman 2014-01-20 10:22:35 +01:00
parent 4aa3d3923d
commit 5c20ae246c

View File

@ -95,7 +95,7 @@ class DmsfUploadController < ApplicationController
file.project = @project
file.name = name
file.folder = @folder
file.notification = !Setting.plugin_redmine_dmsf['dmsf_default_notifications'].blank?
file.notification = Setting.plugin_redmine_dmsf['dmsf_default_notifications'].present?
new_revision.minor_version = 0
new_revision.major_version = 0