forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: Abbas Ali on February 15, 2005, 01:08:00 pm

Title: Album list box on editOnePic.php not building properly
Post by: Abbas Ali on February 15, 2005, 01:08:00 pm
Log in as Admin. Go to User's Gallery and select any pic of any user(non admin) to edit. You will find that Album list box on editOnePic.php doesn't shows the correct album in which that pic lies. Infact it doesn't shows the user's album (in which that pic lies) at all.

I am trying to find out the problem and will commit as i am done with it.
Title: Re: Album list box on editOnePic.php not building properly
Post by: omniscientdeveloper on February 15, 2005, 01:34:11 pm
That's built-in (has always been that way...at least from what I remember). See line 232. The way around it is to use "category-FIRST_USER_CAT", but then you'll only be able to move the pics around inside the user's gallery....at least that's what it's suppose to do.


[edit]

Hmm...Ok. I see what you're talking about now. Disregard. I'm checking it out too, so if I find out before you, I'll post the problem here. I won't commit anything until later on today though.

[/edit]
Title: Re: Album list box on editOnePic.php not building properly
Post by: Abbas Ali on February 17, 2005, 06:44:44 am
The problem was because of passing the current logged in user's id to the function get_user_albums(). This function was getting the admin's id (if logged in as admin) instead of pic owner's id and thus the variable $user_albums_list was not building properly.

I rectified the problem and now the correct album in which that pic lies, comes selected in the album list box. I have comitted it.

After few testings I found that if admin edit pics of other users then on both editpics.php and editOnePic.php the album list box shows all the albums of admin and user but not the personal gallery albums of admin. Is this done on purpose or is it a bug?
Title: Re: Album list box on editOnePic.php not building properly
Post by: Abbas Ali on February 25, 2005, 09:13:28 am
Modified the get_user_albums() function to fix the problem in editpics.php and editOnePic.php. Comitted.

[edit]
Please Confirm.
[/edit]
Title: Re: Album list box on editOnePic.php not building properly
Post by: Tranz on March 05, 2005, 08:24:52 pm
Seems fine to me. Will mark as fixed.