Tweaks to bug reporting

This commit is contained in:
mattpass
2020-08-23 09:28:03 +01:00
parent 53cdbad35b
commit cd352c8a0c
2 changed files with 3 additions and 7 deletions

View File

@@ -3914,12 +3914,7 @@ var ICEcoder = {
this.message(t['No new errors...']);
}
if(this.bugReportStatus=="bugs") {
// Close bug-report without saving previousFiles and without confirming close if we made changes on the bug report
// var bugReportOpenFilePos = this.openFiles.indexOf(this.bugReportPath.replace(/\|/g,"/"));
// if (bugReportOpenFilePos > -1) {
// this.closeTab(bugReportOpenFilePos+1,'dontSetPV','dontAsk');
// }
// this.openFile(this.bugReportPath);
// Show bug report screen and set the bugs state as seen
this.bugReportScreen();
this.bugFilesSizesSeen = this.bugFilesSizesActual;
}

View File

@@ -84,7 +84,7 @@ if ("error" !== $result) {
// Close file
fclose($f);
// OK, now we have bug lines to output, save to our file
// OK, now we have bug lines to output, concat onto output
$output = rtrim(str_replace("\r\n", "\n", $output));
$output = explode("\n", $output);
$output = array_slice($output, -$maxLines);
@@ -93,6 +93,7 @@ if ("error" !== $result) {
}
// Save all output to the bug report file
if (0 < $filesWithNewBugs) {
$settingsClass->serializedFileData("set", $docRoot . $ICEcoderDir . "/data/bug-report.php", serialize($output));
}