CC-4223: Smart playlists: BPM criteria should have numeric modifiers
-done
This commit is contained in:
parent
1dbdadef62
commit
ea621fd9dc
7 changed files with 31 additions and 22 deletions
|
@ -634,7 +634,7 @@ class Application_Model_StoredFile
|
|||
$streamSelect[] = "EXTRACT(YEAR FROM utime)::varchar AS ".$key;
|
||||
}
|
||||
//need to cast certain data as ints for the union to search on.
|
||||
else if (in_array($key, array("track_number", "bit_rate", "sample_rate"))) {
|
||||
else if (in_array($key, array("track_number", "bit_rate", "sample_rate", "bpm"))) {
|
||||
$plSelect[] = "NULL::int AS ".$key;
|
||||
$blSelect[] = "NULL::int AS ".$key;
|
||||
$fileSelect[] = $key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue