ERROR: Couldn't find Project with identifier=desktop.ini #655
This commit is contained in:
parent
54a3805cca
commit
2d8c5e77db
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -106,7 +106,7 @@ module RedmineDmsf
|
||||
end
|
||||
|
||||
def project_id
|
||||
self.project.id if self.project
|
||||
self.project.id if self.project
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user