mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
related to #1614 replacing selectize in photo editor for related categories
This commit is contained in:
committed by
Matthieu Leproux
parent
34fe0fc36f
commit
66bd06176c
@@ -357,6 +357,9 @@ SELECT category_id, uppercats
|
||||
;';
|
||||
$result = pwg_query($query);
|
||||
|
||||
$related_categories = array();
|
||||
$related_categories_ids = array();
|
||||
|
||||
while ($row = pwg_db_fetch_assoc($result))
|
||||
{
|
||||
$name =
|
||||
@@ -371,10 +374,14 @@ while ($row = pwg_db_fetch_assoc($result))
|
||||
}
|
||||
else
|
||||
{
|
||||
$template->append('related_categories', $name);
|
||||
$related_categories[$row['category_id']] = $name;
|
||||
$related_categories_ids[] = $row['category_id'];
|
||||
}
|
||||
}
|
||||
|
||||
$template->assign('related_categories', $related_categories);
|
||||
$template->assign('related_categories_ids', $related_categories_ids);
|
||||
|
||||
// jump to link
|
||||
//
|
||||
// 1. find all linked categories that are reachable for the current user.
|
||||
|
||||
Reference in New Issue
Block a user