Skip to content
Permalink
Browse files

Properly render json string attributes in the crawl profile html editor

  • Loading branch information...
luccioman committed Jun 19, 2018
1 parent 4d9aa4e commit b159564c72f292a23a16686aade0d3413b1b75b8
Showing with 2 additions and 3 deletions.
  1. +2 −3 htroot/CrawlProfileEditor_p.java
@@ -42,8 +42,7 @@
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 static serverObjects respond(
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++;
}

0 comments on commit b159564

Please sign in to comment.
You can’t perform that action at this time.