FIX Allow logo removal without file delete to allow docker binding to the file.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -19,7 +19,16 @@
|
||||
LOGIN_DESKTOP_FILE = 'login-2k.jpg'
|
||||
LOGIN_MOBILE_FILE = 'login.jpg'
|
||||
|
||||
@@ -153,10 +154,8 @@ module RedmineXUxUpgrade
|
||||
@@ -141,8 +142,6 @@ module RedmineXUxUpgrade
|
||||
return unless old_attachment
|
||||
|
||||
if name == LOGO_NAME
|
||||
- path_to_logo = image_path(name, old_attachment.disk_filename)
|
||||
- File.delete(path_to_logo) if path_to_logo && File.exist?(path_to_logo)
|
||||
else
|
||||
FileUtils.cp_r(default_image_path(name), image_path(name))
|
||||
end
|
||||
@@ -153,10 +152,8 @@ module RedmineXUxUpgrade
|
||||
# @param [String | nil] filename - name of the filename of the logo file
|
||||
# @return [String] - path to file corresponding to the given name
|
||||
def self.image_path(name, filename=nil)
|
||||
|
||||
Reference in New Issue
Block a user