Release type field fix
This commit is contained in:
		
							parent
							
								
									fbfdac438f
								
							
						
					
					
						commit
						d3d0f993c5
					
				@ -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
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user