Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91c5b14

Browse files
committed
bug #30380 [WebProfilerBundle] Fix row update on finish ajax request (yceruto)
This PR was merged into the 4.3-dev branch. Discussion ---------- [WebProfilerBundle] Fix row update on finish ajax request | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - ``` Uncaught TypeError: Cannot read property 'setAttribute' of undefined at finishAjaxRequest at XMLHttpRequest.<anonymous> ``` Continuation of #30130 Commits ------- ff9e494 Fix row update on finish ajax request
2 parents 5754846 + ff9e494 commit 91c5b14

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,11 @@
212212
pendingRequests--;
213213
var row = request.DOMNode;
214214
/* Unpack the children from the row */
215-
var profilerCell = row.children[0];
216-
var methodCell = row.children[1];
217-
var statusCodeCell = row.children[3];
215+
var profilerCell = row.children[1];
216+
var methodCell = row.children[2];
217+
var statusCodeCell = row.children[4];
218218
var statusCodeElem = statusCodeCell.children[0];
219-
var durationCell = row.children[5];
219+
var durationCell = row.children[6];
220220
221221
if (request.error) {
222222
row.className = 'sf-ajax-request sf-ajax-request-error';

0 commit comments

Comments
 (0)