mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug 888 fixed: pwg.images.add updates the associated categories so that a
category doesn't remain without representant while containing photos. git-svn-id: http://piwigo.org/svn/trunk@2672 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1120,7 +1120,7 @@ SELECT
|
||||
{
|
||||
if ('auto' == $rank_on_category[$cat_id])
|
||||
{
|
||||
$rank_on_category[$cat_id] = $current_rank_of[$cat_id] + 1;
|
||||
$rank_on_category[$cat_id] = $current_rank_of[$cat_id] + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1144,6 +1144,8 @@ SELECT
|
||||
array_keys($inserts[0]),
|
||||
$inserts
|
||||
);
|
||||
|
||||
update_category($cat_ids);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user