"Add new menu" bug?


Author Message
Nitish

Posted: 4/11/2009
Quote message 

Here's a problem I am facing since the last 2 hours:

When I go to administer>menus>whichever menu > add menu item > *i add an item* > SAVE , i get "The requested page could not be found" . The url reads : /admin/build/menu/item/0/delete

When I change the theme back to Garland and do the same process, it does work.

Maybe you guys can fix this soon.

Cheers
 
Curved Light Solutions

Posted: 4/11/2009
Quote message 

This is a similar bug that I found when Updating a Story or Page - Seems the forms processing code has issues with associating the proper URL/function with the button ie SAVE or SUBMIT


Still waiting from a reply from the develpers - but to be fair its only been a day or so....

Hopefully this will be patched soon


 
CurvedLightSolutions

Posted: 4/13/2009
Quote message 

I traded emails with the developers- they sent me a new version of the program that fixes the problem. You can wait for the next release or patch the code for the time being.

Here is the code that was generated by the new program. This is the last function in the file template.tpl.php
You will have to rename the funtion to include your template name



  function ArtisteerTest_button($element) {

// Make sure not to overwrite classes.
if (isset($element['#attributes']['class'])) {
$element['#attributes']['class'] = 'form-'. $element['#button_type'] .' '. $element['#attributes']['class'];
}
else {
$element['#attributes']['class'] = 'form-'. $element['#button_type'];
}

return
'<button type="submit" class="Button" '. (empty($element['#name']) ? '' : 'name="'. $element['#name']
.'" ') .'id="'. $element['#id'].'">'
.'<span class="btn">'
.'<span class="l"></span>'
.'<span class="r"></span>'
.'<span class="t">'.check_plain($element['#value']).'</span>'
.'</span></button>';
}


Needless to say I am VERY pleased with the quick responce and maked me more confident to purchase the program.

Ken
 
Mark Henman

Posted: 4/14/2009
Quote message 

I was having this same problem. But the above fix wasn't working for me with firefox. I changed:

.'" ') .'id="'. $element['#id'].'">'

to

.'" ') .'id="'. $element['#id'].'" value="'. check_plain($element['#value']) .'">'

And now my themes work again.

 
metal696heart

Posted: 4/15/2009
Quote message 

this is solved in the new beta release