Closed (fixed)
Project:
Workbench Moderation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Sep 2012 at 12:24 UTC
Updated:
6 Feb 2013 at 00:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
jwilson3This is the same patch from #1083720-50: Incorporate Diff to Compare Revisions, just re-uploaded with the matching issue number in the filename.
Comment #2
rocketeerbkw commentedDo we need to be specific about Diff module or can we just put all moderation pages under admin?
Comment #3
jwilson3>can we just put all moderation pages under admin?
Makes sense to me. Thoughts @iStryker?
I'm curious, does the patch in #2 still show /node/X/moderation with the admin theme? In other words, ensuring that the /* wildcard does not only affects sub-pages of the moderation section.
Comment #4
apemantus commentedPatch in #2 has just saved me after an hour or two of trying to work out why node/X/moderation/diff/view/Y/Z wasn't working - ended up upgrading, debugging, clearing caches a number of times before realising my theme wasn't outputting the correct variables. Think workbench should follow diff and use the admin theme so yes, this would be good.
Comment #5
jwilson3Yep, just ran into this again on a new project and #2 worked for me too!
RTBC++
Comment #6
hass commentedI do not think this will work all times. I thought the same some months ago, when we worked on diff 3.x, but it will cause a node preview in seven as example and will show later completly different under production. I have custom theming implemented for my none admin theme and if the node is previewd in seven it will be very broken. Therefore there are good reasons to load this paths not in admin theme.
Comment #7
hass commentednode/*/moderation/diffcould be loaded in an overlay, butnode/*/moderation/diff/view/*not. I'm not sure if the flickering (overlay/non-overlay) is good usability in this case.Otherwise
node/*/revisions/view/*is also loaded in an overlay and breaks all theming... this may comes from core or diff module. Need to look into first.Comment #8
hass commentedWith the #2 patch the diff preview does not show colored backgrounds anymore (at least in seven). If there is an added line it should normally become green, but this is overridden by style.css in seven. CSS from Diff module seems to loose here.
Comment #9
hass commentedI should not always run DEV versions without a timestamp. Has already been fixed in Diff. I'm finally not sure about the theming issue in Seven where the un-themed preview is just plain wrong.
Comment #10
jwilson3So, where does this stand, after all that? still needs work, or was all that a false alarm?
Comment #11
hass commentedNot really. The node is not properly shown in admin theme.
Comment #12
hass commentedI'm generalize this case now and moving it to a bug as I found a lot of module paths that require an overlay and are also missing in hook_admin_paths. Patch attached does follow core (revisions are shown in overlay). The nodes are not properly shown in admin theme, but if core does this we can follow here and I do not care about this - however wrong it seems to me - follow core. I replaced the generic
'node/*/moderation/*'rule with a more explicit approach like core node modules does. Node module specifies every path explicitly.Patch attached has been tested with all these paths.
Comment #13
hass commentedMissed to attach the patch
Comment #14
jwilson3RTBC++, but you really shouldn't RTBC your own patch.
Comment #15
stevectorThanks everybody!
http://drupal.org/commitlog/commit/18554/61688bb277739c104e9335e4dbe7351...
Also yes, please avoid RTBC'ing your own patch.
Comment #16
hass commentedPlease grant co-maintainer permission to me. So I can commit directly and we are not loosing track and sooooo much time. There are tons of need review patches in queue and the maintainers are not commiting/reviewing them. Thx.
Comment #17
jwilson3hass, open up a separate issue to request co-maintainer access i think.