Skip to content

Commit 8544f6a

Browse files
authored
fix: crash in toggleViewsHints - debugDiv.appendChild (toolbar.js) (#9735)
* fix: prevent variable leaking in loop (#9727) * docs: updated changelog
1 parent 2ee8805 commit 8544f6a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

system/Debug/Toolbar/Views/toolbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ var ciDebugBar = {
440440
var debugPath = document.createElement("div"); // path
441441
var childArray = startElement[0].parentNode.childNodes; // target child array
442442
var parent = startElement[0].parentNode;
443-
var start, end;
443+
let start, end;
444444

445445
// setup container
446446
debugDiv.classList.add("debug-view");

user_guide_src/source/changelogs/v4.6.4.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Bugs Fixed
4545
- **Model:** Fixed a bug in ``Model::replace()`` where ``created_at`` field (when available) wasn't set correctly.
4646
- **Model:** Fixed a bug in ``Model::insertBatch()`` and ``Model::updateBatch()`` where casts were not applied to inserted or updated values.
4747
- **Toolbar:** Fixed bugs in ``Collectors\Logs`` that were preventing the "Logs" tab from appearing on the Debug Toolbar.
48+
- **Toolbar:** Fixed bugs in ``toolbar.js`` which caused "Uncaught TypeError" in some scenarios.
4849
- **Validation:** Fixed a bug in the ``FormatRules::valid_base64()`` validation rule that caused a TypeError when checking invalid base64 strings.
4950

5051
See the repo's

0 commit comments

Comments
 (0)