1
0
Fork 0

Release type field fix

This commit is contained in:
magnolia-fan 2011-04-05 09:41:03 +04:00
parent fbfdac438f
commit d3d0f993c5
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ class Musicbrainz_ReleaseModel extends Model {
FROM musicbrainz.bh_release
WHERE
release_group IN (\''. implode('\',\'', $release_groups) .'\')
'. ($only_official ? 'AND type = 1' : 'AND type IS NOT NULL') .'
'. ($only_official ? 'AND release_type = 1' : 'AND release_type IS NOT NULL') .'
ORDER BY
date ASC,
id ASC

View File

@ -9,7 +9,7 @@ class Musicbrainz_ReleaseGroupModel extends Model {
FROM musicbrainz.bh_release_group
WHERE
artist_id IN (\''. implode('\',\'', $artist_ids) .'\') AND
type = 1
release_type = 1
ORDER BY
year ASC,
id ASC
@ -25,7 +25,7 @@ class Musicbrainz_ReleaseGroupModel extends Model {
FROM musicbrainz.bh_release_group
WHERE
artist_id = \''. $artist_id .'\' AND
type = 1
release_type = 1
ORDER BY
year ASC,
id ASC