mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 20:29:58 +03:00
tags returned by get_all_tags, get_available_tags contain id key instead of tag_id
(as expected by make_index_url, as $page['tags'] was and as the database model is) git-svn-id: http://piwigo.org/svn/trunk@1815 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
711ebcbf2c
commit
df3b43d356
8 changed files with 41 additions and 87 deletions
|
@ -558,10 +558,10 @@ function get_html_tag_selection(
|
|||
'<li>'
|
||||
.'<label>'
|
||||
.'<input type="checkbox" name="'.$fieldname.'[]"'
|
||||
.' value="'.$tag['tag_id'].'"'
|
||||
.' value="'.$tag['id'].'"'
|
||||
;
|
||||
|
||||
if (in_array($tag['tag_id'], $selecteds))
|
||||
if (in_array($tag['id'], $selecteds))
|
||||
{
|
||||
$output.= ' checked="checked"';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue