From 4a500e08bd82be4c953e149d6c2abe24eacad445 Mon Sep 17 00:00:00 2001 From: Legedric Date: Wed, 6 Jun 2018 06:06:19 +0200 Subject: [PATCH] Finally fixes an issue where PTM was not writing to preset files on Non-Windows systems #540 --- Monitor/Pages/_post/SavePresetFile.cshtml.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Monitor/Pages/_post/SavePresetFile.cshtml.cs b/Monitor/Pages/_post/SavePresetFile.cshtml.cs index 623eb4d..4ce9cba 100644 --- a/Monitor/Pages/_post/SavePresetFile.cshtml.cs +++ b/Monitor/Pages/_post/SavePresetFile.cshtml.cs @@ -40,6 +40,7 @@ namespace Monitor.Pages { if (requestBody.Length > 0) { SavePresetFileForm spff = JsonConvert.DeserializeObject(requestBody); if (spff != null) { + spff.FileName = spff.FileName.Replace(".PROPERTIES", ".properties"); string settingPropertiesPath = PTMagicBasePath + Constants.PTMagicPathPresets + Path.DirectorySeparatorChar + spff.SettingName + Path.DirectorySeparatorChar + spff.FileName; if (System.IO.File.Exists(settingPropertiesPath)) { try {