Closed (cannot reproduce)
Project:
Project
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2009 at 16:03 UTC
Updated:
8 Oct 2019 at 22:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dave reidArgh. F**king varnish ruined the uploads.
Comment #2
dave reidA interim remedy for this is to add node/add/* and node/*/edit pages to the dreditor exclusion pages. But this should be fixed in dreditor itself somehow.
Comment #3
sunAlso, you shouldn't upload attachments with spaces in the filename. :P
http://drupal.org/files/issues/Disemvowel%20with%20dreditor_0.png
http://drupal.org/files/issues/Disemvowel%20wtih%20dreditor%20after%20cl...
http://drupal.org/files/issues/Disemvowel%20dreditor%20disabled_0.png
Comment #4
dave reidNever had a problem with it before until Varnish was put on drupal.org.
Comment #5
sunInvestigated this and tracked it down to Dreditor's initialization, where it does:
Commenting out
Drupal.attachBehaviors(this);fixes the bug, but this means that Project module's behavior is buggy. JavaScript behaviors need to be written in a way that they can be invoked at any time, also repeatedly.Comment #6
hass commented#659684: "Modules categories" lost on project edit pages as been marked as a duplicate.
Comment #7
sunbump
Comment #8
dwwI installed this on d6.p.d.o and now it fails without dreditor. When you first load the page, the "Modules categories" section is gone, even if you have the "Modules" radio by default. Only if you toggle to something else and back to Modules do the module categories appear. Seems this patch just reverses the bug from dreditor users (minority) to non-dreditor users (majority). Try it yourself at:
http://d6.project.drupal.org/node/29351/edit
(or some other project node you can edit)...
Comment #9
sunAll I can think of is that this may break JS entirely now if this.checked == false.
However, what's the default? undefined?
Powered by Dreditor.
Comment #10
sunThe real bug is that the .click() event is bound all over again. Only in a second attempt I realized that the entirely wrong indentation of this behavior led to this bug.
Comment #11
sunThis time for real.
Comment #12
sunoopsie... that hunk doesn't belong in here :P
Powered by Dreditor.
Comment #13
sunWithout.
Comment #14
bdragon commentedRerolled.
Comment #15
dwwLooks great to me, thanks for driving this home! I guess we need to coordinate with sun about fixing dreditor once this lands.
Comment #16
bdragon commentedFixed, thanks.
With this and #371957: Add customized per project type related vocabularies in, it would be a very good idea to remove the Drupal.behaviors.projectAuto override in dreditor once this stuff is deployed on d.o.
http://drupal.org/cvs?commit=358246
Comment #17
sunyay, thanks! I just need to know when this is deployed. Or better yet, I'll just remove Dreditor's override immediately.
EDIT: done, http://drupal.org/cvs?commit=358252
Comment #18
webchickFixing tag.
Comment #19
sunThe fix has been deployed to drupal.org already.
However, the changes do not seem to be fully sufficient. The module categories are still reset to /dev/null when previewing an edited project node. Wasn't able to figure out the exact conditions yet; here's what I have so far:
Important: Make sure to disable Dreditor when trying to reproduce.
Comment #20
drummI don't think this is relevant now.
In D6, if I remember correctly, there was one hierarchical taxonomy for project type (theme/module/etc) and module category. We don’t do this in D7.