2527778d amended to display Level.localizedName but track Level.name in the form submission.

This commit is contained in:
Jesse Glick committed 2013-06-10 13:40:03 -04:00
1 parent 0ca88a6cea
commit dd28e97049
2 files changed
+2 -3

No files matched your search

@@ -45,7 +45,6 @@ import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Arrays;
import java.util.Locale;
import java.util.logging.Level;
import java.util.logging.LogRecord;
import java.util.logging.Logger;
@@ -100,7 +99,7 @@ public class LogRecorder extends AbstractModelObject implements Saveable {
@DataBoundConstructor
public Target(String name, String level) {
this(name,Level.parse(level.toUpperCase(Locale.ENGLISH)));
this(name,Level.parse(level));
}
public Level getLevel() {
@@ -55,7 +55,7 @@ THE SOFTWARE.
<td>
<select name="level">
<j:forEach var="lv" items="${it.LEVELS}">
<f:option selected="${instance.level==lv}">${lv.localizedName}</f:option>
<f:option value="${lv.name}" selected="${instance.level==lv}">${lv.localizedName}</f:option>
</j:forEach>
</select>
</td>