on s.d.o right now, only users with "administer projects" permissions can create new release nodes that have a "Drupal Core compatibility" taxonomy term associated with them. :( this majorly cripples the functionality of the release system in a few important ways, hence critical.

i'm pretty sure i know what's going wrong, but i haven't actually looked into the code yet.

i've verified the problem does *not* exist on a 4.7.x-2.* test site, and it's not happening on d.o, so this is just a bug in HEAD, caused by the 5.x port: http://drupal.org/node/99759.

Comments

dww’s picture

Status: Active » Needs work
StatusFileSize
new1.07 KB

yup, it's another case of the new taxonomy array (http://drupal.org/node/24023) confusing our code. see http://drupal.org/node/101150#comment-168755 for how i solved it in cvs.module. i should probably move _cvs_get_option_from_taxo() out of cvs.module and into project.module as project_get_option_from_taxonomy(), since the only times cvs.module uses it are in cvs_alter_project_release_form which can only happen if project + project_release are enabled, anyway. i'm thinking project is better than project_release, since this bug might surface in other places in project's special-case code for taxonomies. this way, everyone could benefit from the same project_get_option_from_taxonomy() code. a quick hack in my local workspace just directly calling _cvs_get_option_from_taxo() in the right way solves the bug. see attached (hack, needs work) patch.

dww’s picture

Version: x.y.z » 5.x-1.x-dev
Status: Needs work » Needs review
StatusFileSize
new4.07 KB

something like this.

dww’s picture

now installed on s.d.o. seems to work to add release nodes as a user without "Administer projects" perms.

hunmonk, care to test/confirm? ;)

dww’s picture

Status: Needs review » Needs work

hrm, although in related news, the "Categories" fieldset itself has disappeared in this case. not sure why. :( still works on d.o, so it must be something about the D5 port... however, before i dig into that, anything else "needs work" in here? ;)

thanks,
-derek

dww’s picture

Status: Needs work » Needs review
StatusFileSize
new3.73 KB

ok, the lack of fieldset is by-design from the new D5 UI. if there's only 1 selector in the taxonomy, there's no fieldset.

here's a new patch assuming that http://drupal.org/node/24023#comment-171433 gets committed to core. wishful thinking perhaps... ;) if not, we're back to patch #2 above.

dww’s picture

Status: Needs review » Fixed

since http://drupal.org/node/24023#comment-171441 got committed, this is now ready. committed to HEAD and installed on s.d.o.

dww’s picture

Status: Fixed » Needs review
StatusFileSize
new5.72 KB

if http://drupal.org/node/24023#comment-171782 gets committed, we need to fix our usage of form_get_option_key()

dww’s picture

Status: Needs review » Needs work

that function will probably change name to form_get_options(). we'll need a new patch in here.

dww’s picture

Status: Needs work » Needs review
StatusFileSize
new5.85 KB

http://drupal.org/node/24023#comment-174110 was committed, so here's the new patch for this.

dww’s picture

Status: Needs review » Fixed

tested on s.d.o with the help of some kind souls in IRC. committed to HEAD and installed (for real) on s.d.o.

Anonymous’s picture

Status: Fixed » Closed (fixed)