ERROR: Couldn't find Project with identifier=desktop.ini #655

This commit is contained in:
Karel Picman 2017-02-14 13:57:42 +01:00
parent 54a3805cca
commit 2d8c5e77db
3 changed files with 4 additions and 3 deletions

View File

@ -24,6 +24,7 @@ Changelog for Redmine DMSF
* Bug: #663 - Locked documnts on My page
* Bug: #662 - Broken paging on the Add approver form
* New: #655 - ERROR: Couldn't find Project with identifier=desktop.ini
* Bug: #652 - Missing date picker when creating new file
* Bug: #651 - Incomplete copy of a file to another project
* New: #641 - Documents export

View File

@ -145,7 +145,7 @@ module RedmineDmsf
File.dirname(path)
end
# Return instance of Project based on path
# Return instance of Project based on the path
def project
unless @project
pinfo = @path.split('/').drop(1)
@ -153,7 +153,7 @@ module RedmineDmsf
begin
@project = Project.find(pinfo.first)
rescue Exception => e
Rails.logger.error e.message
Rails.logger.warn e.message
end
end
end

View File

@ -106,7 +106,7 @@ module RedmineDmsf
end
def project_id
self.project.id if self.project
self.project.id if self.project
end
end