CC-3174 : showbuilder
make sure recorded files only display year in the table.
This commit is contained in:
parent
9c248bb34d
commit
318a0345bb
|
@ -588,8 +588,9 @@ class Application_Model_StoredFile {
|
||||||
$fileSelect[] = $key;
|
$fileSelect[] = $key;
|
||||||
}
|
}
|
||||||
else if ($key === "year") {
|
else if ($key === "year") {
|
||||||
|
|
||||||
$plSelect[] = "EXTRACT(YEAR FROM utime)::varchar AS ".$key;
|
$plSelect[] = "EXTRACT(YEAR FROM utime)::varchar AS ".$key;
|
||||||
$fileSelect[] = $key;
|
$fileSelect[] = "EXTRACT(YEAR FROM to_date(year, 'YYYY-MM-DD'))::varchar AS ".$key;;
|
||||||
}
|
}
|
||||||
//need to cast certain data as ints for the union to search on.
|
//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"))){
|
||||||
|
|
Loading…
Reference in New Issue