Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Creating Sub Albums Issue #85

Open
sjgarth opened this issue Mar 13, 2024 · 2 comments
Open

User Creating Sub Albums Issue #85

sjgarth opened this issue Mar 13, 2024 · 2 comments

Comments

@sjgarth
Copy link

sjgarth commented Mar 13, 2024

Hi,
Piwigo 14.3
PHP 8.1
Community Plugin 14a
All themes
User permissions granted to upload and create sub-albums.

After clicking create sub-album, entering a name and clicking create, it sends user back to upload page where no albums are visible. The upload page then needs a refresh to see the new sub-album and then upload photos.
If I do not create the new sub-album, everything works as required.
To illustrate this, a video is available;

community.upload.issue.mp4
@beccare
Copy link

beccare commented Jun 6, 2024

I hacked this for myself by just reloading the page with javascript.

replacing in plugins/community/add_photos.tpl around line 138

/* we hide the ability to create another album, this is different from the admin upload form */
/* in Community, it's complicated to refresh the list of parent albums */
jQuery("#linkToCreate").hide();

with just
window.location.reload();

This way the drop down is repopulated (but reset to the first entry)

@Ainz
Copy link

Ainz commented Jun 18, 2024

Is this not related to the inability for Community users to create sub albums and post images in a sub album?

image

And if so could it be due to my Community album being in /root instead of in a /Community/ album?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants