Closed (won't fix)
Project:
Node Gallery
Version:
6.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2011 at 08:50 UTC
Updated:
11 Nov 2011 at 03:03 UTC
Hi All,
I had a problem sorting images (sort images tab), when required CCK fields where enabled. I never sorted the images but gave me errors that a field was missing. I solved that problem by changing the function: function node_gallery_sort_images_form($form_state, $gallery) { in the node_gallery.pages.inc.
In line 443 $form['files'][$key]['edit_form'][$item_key]['#type'] = 'value';
I changed it to $form['files'][$key]['edit_form'][$item_key]['#access'] = FALSE;
this I think is a more proper way to hide the form fields.
Cheers Dirk
Comments
Comment #1
dddave commentedThanks for documenting your solution. As this is against NG2 I guess this issue is effectively a "won't fix" but perhaps it might help somebody.
Comment #2
justintime commentedMoving to won't fix since it's on 2.x