Skip to content

Commit 720a49c

Browse files
Show last n lines of log throws HTTP Status 500 – Internal Server Error #135 (#136)
* added an additional check to the view last n lines of log JS code
1 parent 57f0125 commit 720a49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application-admintools-ui/src/main/resources/AdminTools/Code/AdminToolsJS.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ require(['jquery', 'xwiki-meta', 'xwiki-job-runner', 'xwiki-l10n!admin-tools-cac
239239
let noLines = modal.find("input[name='noLines']").val();
240240

241241
// If the input is empty, the default value of 1000 will be requested.
242-
if (noLines == '') {
242+
if (noLines == '' || noLines === undefined) {
243243
noLines = '1000';
244244
}
245245

0 commit comments

Comments
 (0)