CC-3174 : showbuilder

change columns sample rate and bitrate to be integers so they sort properly in the library.
This commit is contained in:
Naomi Aro 2012-02-27 12:07:46 +01:00
parent 73a91e6982
commit 36cf8ded18
6 changed files with 53 additions and 35 deletions

View file

@ -592,7 +592,7 @@ class Application_Model_StoredFile {
$fileSelect[] = $key;
}
//need to cast certain data as ints for the union to search on.
else if (in_array($key, array("track_number"))){
else if (in_array($key, array("track_number", "bit_rate", "sample_rate"))){
$plSelect[] = "NULL::int AS ".$key;
$fileSelect[] = $key;
}