The problem popped up when i was trying to add a new bracket from the "/admin/node/bracket/add" path. Admin_menu uses these path's in the "Create content" menu.

The problem lies in
bracket.module - line 562 onwards

  if (arg(1) == 'add') {
    $options = array('' => t('Select a bracket design')) + bracket_design_list();
    $form['bracket']['design'] = array(

Arg(1) returns bracket here and not add, so i can't choose a design and create a new bracket.

Comments

jimbullington’s picture

Thank you for the report. Yes, we need a better way to detect the add - how about changing line 562 to:

  if (!isset($node->nid)) {
jimbullington’s picture

Status: Active » Needs review
XiaN Vizjereij’s picture

Status: Needs review » Active

I'm sorry, but my knowledge of the module internals is not good enough. I just started using the module and can not commentate on that yet :(

jimbullington’s picture

I'm pretty sure it will work - I've committed the change to the 6.x-2.x-dev branch so you can try it again after the next build later today.

jimbullington’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.