Skip to content

Commit

Permalink
bug #30380 [WebProfilerBundle] Fix row update on finish ajax request …
Browse files Browse the repository at this point in the history
…(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
  • Loading branch information
fabpot committed Feb 26, 2019
2 parents 5754846 + ff9e494 commit 91c5b14
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -212,11 +212,11 @@
pendingRequests--;
var row = request.DOMNode;
/* Unpack the children from the row */
var profilerCell = row.children[0];
var methodCell = row.children[1];
var statusCodeCell = row.children[3];
var profilerCell = row.children[1];
var methodCell = row.children[2];
var statusCodeCell = row.children[4];
var statusCodeElem = statusCodeCell.children[0];
var durationCell = row.children[5];
var durationCell = row.children[6];
if (request.error) {
row.className = 'sf-ajax-request sf-ajax-request-error';
Expand Down

0 comments on commit 91c5b14

Please sign in to comment.