Skip to content

Commit

Permalink
merge r12539 from branch 2.3 to trunk
Browse files Browse the repository at this point in the history
feature 2352: a bug had been introduced by r12537, the piwigo_user_cache_categories.count_categories
was missing (the list of albums was not refreshing correctly on the upload form)



git-svn-id: http://piwigo.org/svn/trunk@12544 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Nov 4, 2011
1 parent 7b1964c commit ee79c85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/ws_functions.inc.php
Expand Up @@ -490,7 +490,7 @@ function ws_categories_getList($params, &$service)
SELECT id, name, permalink, uppercats, global_rank, id_uppercat,
comment,
nb_images, count_images AS total_nb_images,
user_representative_picture_id, count_images,
user_representative_picture_id, count_images, count_categories,
date_last, max_date_last, count_categories AS nb_categories
FROM '.CATEGORIES_TABLE.'
'.$join_type.' JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id=cat_id AND user_id='.$join_user.'
Expand Down Expand Up @@ -723,6 +723,7 @@ function ws_categories_getList($params, &$service)
// we don't want them in the output
unset($cat['user_representative_picture_id']);
unset($cat['count_images']);
unset($cat['count_categories']);
}
unset($cat);
// management of the album thumbnail -- stops here
Expand Down

0 comments on commit ee79c85

Please sign in to comment.