View Issue Details

IDProjectCategoryView StatusLast Update
0005485MMW v4Otherpublic2009-04-09 01:30
ReporterBex Assigned To 
PriorityimmediateSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.1 
Fixed in Version3.1 
Summary0005485: Active filter is incorrectly implemented in the "Artist & Album Artist"-Node
DescriptionThe filter-sql is only applied to the Artist and not to the Album Artist thus making the node to only display Artists matching the active filter and not any Album Artists.

E.g. Apply "General Music"-Filter
It gives this SQL:
SELECT Artists.ID, Artists.Artist,Artists.Albums AS cnt FROM Artists
WHERE Artists.ID IN
 (SELECT ArtistsSongs.IDArtist FROM ArtistsSongs
  WHERE ArtistsSongs.PersonType=1 AND ArtistsSongs.idSong IN
 (SELECT ID FROM Songs WHERE(Songs.TrackType=0)))
GROUP BY Artists.ID, Artists.Artist

It should give something like this:
SELECT Artists.ID, Artists.Artist,Artists.Albums AS cnt FROM Artists
WHERE Artists.ID IN
 (SELECT ArtistsSongs.IDArtist FROM ArtistsSongs
  WHERE ArtistsSongs.PersonType=1 AND ArtistsSongs.idSong IN
 (SELECT ID FROM Songs WHERE(Songs.TrackType=0)))
OR Artists.ID IN
 (SELECT ArtistsAlbums.IDArtist FROM ArtistsAlbums
  WHERE ArtistsAlbums.IDAlbum IN
 (SELECT Songs.IDAlbum FROM Songs WHERE (Songs.TrackType=0)))
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=6&t=38300
TagsNo tags attached.
Fixed in build1234

Activities

Ludek

2009-04-07 10:06

developer   ~0017424

Bex, thank you.

Fixed in build 1234.

stephen_platt

2009-04-09 01:30

developer   ~0017473

verified 1235