mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-02 23:03:59 +01:00
Tweaks to bug reporting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user