From b159564c72f292a23a16686aade0d3413b1b75b8 Mon Sep 17 00:00:00 2001 From: luccioman Date: Tue, 19 Jun 2018 12:46:50 +0200 Subject: [PATCH] Properly render json string attributes in the crawl profile html editor --- htroot/CrawlProfileEditor_p.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htroot/CrawlProfileEditor_p.java b/htroot/CrawlProfileEditor_p.java index 1e7462f87..4ca089ad2 100644 --- a/htroot/CrawlProfileEditor_p.java +++ b/htroot/CrawlProfileEditor_p.java @@ -42,8 +42,7 @@ public class CrawlProfileEditor_p { private final static String CRAWL_PROFILE_PREFIX = "crawlProfiles_"; private static final String EDIT_ENTRIES_PREFIX = "edit_entries_"; - public static serverObjects respond( - @SuppressWarnings("unused") final RequestHeader header, + public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { final servletProperties prop = new servletProperties(); @@ -160,7 +159,7 @@ public class CrawlProfileEditor_p { prop.put(EDIT_ENTRIES_PREFIX + count + "_readonly_type_checked", val == null ? "0" : Boolean.parseBoolean(val) ? "1" : "0"); } else { - prop.put(EDIT_ENTRIES_PREFIX + count + "_readonly_type_value", val == null ? "" : val); + prop.put(header.fileType(), EDIT_ENTRIES_PREFIX + count + "_readonly_type_value", val == null ? "" : val); } count++; }