Closed (fixed)
Project:
Private Upload
Version:
5.x-1.0-beta6
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2008 at 11:15 UTC
Updated:
23 Jul 2008 at 10:56 UTC
FYI: I noticed a small problem with this otherwise excellent module. When I view a node with file attachments (private or public) the file attachments table appears at the bottom of the node when I'm logged in but at the top when I'm anonymous.
I fixed it by adding a new line in the `private_upload_nodeapi` function
// Always rebuild the files table and overwrite default.
$node->content['files']['#value'] = theme('private_upload_attachments', $node->files);
/********************
**new line here
********************/
$node->content['files']['#weight'] = 50;
break;
Basically, I explicitly set the weight of the table to something high (like in the core `upload` module) to make sure it behaved like the core module.
Comments
Comment #1
starbow commentedThanks for the tip. I will make sure this gets into the next roll.
Comment #2
starbow commentedComment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.