#240 Internal server error, redmine 2.5.1-devel.13064, PostgreSQL, dmsf 1.4.8-devel

This commit is contained in:
Karel Picman 2014-04-07 13:02:15 +02:00
parent 920a0ca2f7
commit 13cc1b4bc2

View File

@ -24,7 +24,7 @@ class DmsfLink < ActiveRecord::Base
validates :name, :presence => true
validates :target_id, :presence => true
validates_length_of :name, :maximum => 255
scope :visible, :conditions => 'deleted = 0'
scope :visible, :conditions => ['deleted = ?', false]
def target_folder_id
if self.target_type == DmsfFolder.model_name