If a want to create more than one node gallery the "Upload New Items" tab is only shown for the latest node gallery relationship I have created.
E.g. I have a node gallery for the tow content type pairs:
media_album with media_album_image
user_album with user_album_image

I have created relationships for both galleries. However only the latest created relationship seems to work for uploading images, i.e. shown "Upload New Items" tab on the full node.

Members fund testing for the Drupal project. Drupal Association Learn more


ahaus’s picture

Component: Code » User interface
ahaus’s picture

Seems to be a permission problem.

If I try the path "myapp/node/117/upload" for the working node gallery relationship it shows the tab correctly.

If I try for it for another node gallery relationship (where the "Upload New Items" tab is not shown) it brings up an "Access Denied" error.

I am testing this with the admin user (1).

zengenuity’s picture

Priority: Critical » Normal
2.75 KB

I was able to replicate the issue.

Try the attached patch.

ahaus’s picture

Thanks for this patch. It did the trick for me.
For one Drupal instance I had to recreate the relationships. On another Drupal instance I just applied the patch and it worked (no need for recreating the relationships).

ahaus’s picture

Status: Active » Closed (fixed)
stinky’s picture

Here's what I got when I tried to apply the patch:

[root@dev node_gallery]# patch -node_gallery_api.module < node_gallery-missing-upload-tab-1911314-3.patch
patch: **** Only garbage was found in the patch input.

stinky’s picture

Tried patch < node_gallery-missing-upload-tab-1911314-3.patch and I think it worked, but the upload tab is still missing.

stinky’s picture

Any ideas on getting the Upload tab to appear???