I create new menu. I add 4 submenu items with names:

* Menu 1
* Menu 2
* Menu 3
* Menu 4

Then i get (drag and drop) Menu 1 and order it on latest position and Save it. I get:

* Menu 2
* Menu 3
* Menu 4
* Menu 1

Then i click edit Menu 2 item and simple save it. Nov i get:

* Menu 3
* Menu 4
* Menu 1
* Menu 2

This behaviour is confusing, i expect order vhich i create with drag&drop.

CommentFileSizeAuthor
#4 menu-weights.patch1.33 KBwebernet
#2 menu-weights.patch814 byteswebernet

Comments

havran’s picture

This is maybe because drag and drop system operate with weights -50 to 50 and if i edit menu item directly i get weight form menu item only -10 to 10. This save edited item with incorrect weight.

webernet’s picture

Version: 6.0-rc4 » 6.x-dev
Status: Active » Needs review
StatusFileSize
new814 bytes

Attached patch expands the weights available to match the drag and drop form.

havran’s picture

In menu item editation patch working great, but if i edit menu item in node editation there is still same problem - delta for weight is set only from -10 to 10.

webernet’s picture

StatusFileSize
new1.33 KB

Attached patch fixes both forms.

Untested.

pwolanin’s picture

Status: Needs review » Reviewed & tested by the community

applies cleanly (stripping trailing CRs), and works.

havran’s picture

Patch working as expected. RTBC. Thanx.

catch’s picture

gábor hojtsy’s picture

Version: 6.x-dev » 7.x-dev

Indeed, this was not consistently modified in the fix where we expanded that region. Committed #4 to 6.x. RTBC for 7.x.

dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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