From 5c20ae246c5242cdb1a5166f69470125b83d0780 Mon Sep 17 00:00:00 2001 From: Karel Picman Date: Mon, 20 Jan 2014 10:22:35 +0100 Subject: [PATCH] present? instead of !blank? --- app/controllers/dmsf_upload_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dmsf_upload_controller.rb b/app/controllers/dmsf_upload_controller.rb index e71fe827..1109e28e 100644 --- a/app/controllers/dmsf_upload_controller.rb +++ b/app/controllers/dmsf_upload_controller.rb @@ -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