When viewing a node with move permissions, nodeorder always shows the move up and the move down links, even when the node is first or last, and even if it is the only node within the category.
Clicking and the link (for example, moving up a node that is in first position) leads to a access denied error page.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | nodeorder.module_0.patch | 1.59 KB | ricflomag |
| #1 | nodeorder.module.patch | 1.59 KB | ricflomag |
Comments
Comment #1
ricflomag commentedI have made a patch to nodeorder_link() function to correct this problem on my site. I am new to drupal so it probably does not stick to the standards, but it works fine for me.
See attached file.
Comment #2
ricflomag commentedI have made a patch to nodeorder_link() function to correct this problem on my site. I am new to drupal so it probably does not stick to the standards, but it works fine for me.
See attached file.
Comment #3
OliverColeman commentedPatch works in 1.2, too (though line numbers are a little different I think, I applied it manually). Thanks ricflomag.
Any chance of getting this committed?
Comment #4
marcp commentedI like the functionality, but there are going to be too many database hits on page listings with many nodes. Here is the pseudocode for what I'd like to see in nodeorder_link():
If anyone wants to take a crack at it and provide a patch that implements this, I'd get it in there.
Comment #5
marcp commentedLet's get this in there.
Comment #6
pvanderspek commentedThis has been fixed in the 6.x release