CC-3174 : showbuilder
change columns sample rate and bitrate to be integers so they sort properly in the library.
This commit is contained in:
parent
73a91e6982
commit
36cf8ded18
6 changed files with 53 additions and 35 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue