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

dddave’s picture

Thanks 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.

justintime’s picture

Status: Active » Closed (won't fix)

Moving to won't fix since it's on 2.x