Ticket #699 (new defect)
Opened 12 years ago
Ajout en masse de tags dans les billets-images de Gallery
Reported by: | jojojr | Owned by: | bruno |
---|---|---|---|
Priority: | normal | Component: | plugin:gallery |
Severity: | normal | Keywords: | tags |
Cc: |
Description
Gallery 0.4.2 sous DC 2.3.1. L'ajout en masse de tags ne fonctionne pas.
Fix : dans le fichier gallery/items_actions.php, lignes 149 etc. elseif ($action == 'tags' && !empty($_POSTnew_tags?)) remplacer
# Get tags for post $post_meta = $meta->getMeta('tag',null,null,$posts->post_id); $pm = array(); while ($post_meta->fetch()) { $pm[] = $post_meta->meta_id; }
par
# Get tags for post $pm = array(); $post_tags = $meta->getMetadata(array( 'meta_type' => 'tag', 'post_id' => (integer) $posts->post_id))->toStatic()->rows(); foreach ($post_tags as $key => $v) { $pm [] = $v['meta_id']; }
Note: See
TracTickets for help on using
tickets.