Closed (fixed)
Project:
Devel
Version:
7.x-1.x-dev
Component:
devel
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2013 at 14:45 UTC
Updated:
15 Dec 2013 at 16:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
yannickooComment #2
hass commentedWe need to fix all occurences of
Drupal.settings. Not only a few...Comment #3
hass commentedTried
dpm($node);but cannot expand to all data. What exactly does this patch trying fix?Comment #4
pcambraI don't think that the data is not expanding because of this, I think the issue is bigger: #1853112: Replacement for Krumo? meaning that non stdClass such as *everything* now in D8 is not expanded because the same reasons that metadata wrappers or other classes weren't in D7.
Closing #2112747: Dumping with krumo() no longer working? as dupe of this
Comment #4.0
pcambraUpdated issue summary.
Comment #5
pcambraSome of the conversions happened in #2108403: Big menu sales! hook_menu needs routing now
Comment #6
aaronbaumanAll Drupal.behaviors attach() functions get passed a "settings" parameter.
Isn't using that argument more appropriate than the global in those contexts?
Comment #7
aaronbaumanAnyway, there are only 2 instances of this issue remaining.
Comment #8
pcambrashouldn't this be drupalSettings?
Comment #9
aaronbaumanWell, that was my question in #6.
Is the settings argument to the attach() function not more appropriate in this context?
If not, I don't know what that argument is for.
edit: According to this document, the local settings argument is indeed more appropriate in this context.
Comment #10
pcambraSetting as RTBC as for #2128675: JavaScript error on all pages
Yeah, seems is cheaper to use settings if we have it in the context
Comment #11
salvisLooks ok to me.
Comment #12
salvisComment #13
yannickooI would pass
contextandsettingsin every attach function so we do not needdrupalSettingsand just usesettings.Comment #14
pcambraI think it's the way to go, but I'm getting back to NR as we need further testing with the new changes.
This could be backported to D7 too.
Comment #15
pcambraI'd say we can port some of these changes to D7 (proper settings handler instead of Drupal.settings)
Comment #16
pcambraComment #17
yannickooComment #18
salvisThanks, yannickoo!
You missed two recursive calls to devel_node_access_user_ajax().
With that it's working fine. Wait for the testbot...
Comment #19
yannickooOh sorry but thank you salvis! :)
Comment #20
salvisNo problem, that's why we do reviews.
Pushed to D7.
Comment #21
pcambra\o/ thanks @yannickoo @aaronbauman & @salvis =D