Skip to content

Commit

Permalink
Fix bug in migration of splits from old console without tabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbj committed Jan 17, 2025
1 parent 16b8e43 commit 6f6cdf0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TracyDebugger.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getModuleInfo() {
'summary' => __('Tracy debugger from Nette with many PW specific custom tools.', __FILE__),
'author' => 'Adrian Jones',
'href' => 'https://processwire.com/talk/forum/58-tracy-debugger/',
'version' => '4.26.56',
'version' => '4.26.57',
'autoload' => 100000, // in PW 3.0.114+ higher numbers are loaded first - we want Tracy first
'singular' => true,
'requires' => 'ProcessWire>=2.7.2, PHP>=5.4.4',
Expand Down
2 changes: 1 addition & 1 deletion panels/ConsolePanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ public function getPanel() {
var tracyConsoleHistory = JSON.parse(localStorage.getItem("tracyConsoleHistory"));
var tracyConsoleHistoryCount = JSON.parse(localStorage.getItem("tracyConsoleHistoryCount"));
var tracyConsoleHistoryItem = JSON.parse(localStorage.getItem("tracyConsoleHistoryItem"));
var tracyConsoleSplitSizes = localStorage.getItem("tracyConsoleSplitSizes");
var tracyConsoleSplitSizes = JSON.parse(localStorage.getItem("tracyConsoleSplitSizes"));
var tracyConsoleSelectedSnippet = localStorage.getItem("tracyConsoleSelectedSnippet");
var tracyConsoleTabs = [
{
Expand Down
1 change: 0 additions & 1 deletion panels/ProcesswireInfoPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ function tracyClearGoToPageID(matchStatus) {
if(xmlhttp.readyState == XMLHttpRequest.DONE) {
if(xmlhttp.status == 200 && xmlhttp.responseText !== "[]") {
var pageDetails = JSON.parse(xmlhttp.responseText);
console.log(pageDetails.trash);
document.getElementById("pageDetails").innerHTML = "<span uk-tooltip title='" + pageDetails.path + "' style='" + (pageDetails.unpublished ? 'text-decoration: line-through' : '') + (pageDetails.hidden ? '; opacity: 0.5' : '') + "'>" + (pageDetails.trash ? '🗑︎ ' : '') + pageDetails.title + "</span>&nbsp;(<a href='{$this->wire('config')->urls->admin}setup/template/edit?id=" + pageDetails.template_id + "' style='color:#888' title='" + (pageDetails.template_label ? pageDetails.template_label : '') + "' uk-tooltip>" + pageDetails.template_name + "</a>)";
document.getElementById("idGoToEdit").href = "{$this->wire('config')->urls->admin}page/edit/?id=" + pageDetails.id;
document.getElementById("idGoToView").href = pageDetails.url;
Expand Down

0 comments on commit 6f6cdf0

Please sign in to comment.