CC-3174 : showbuilder

make sure recorded files only display year in the table.
This commit is contained in:
Naomi Aro 2012-02-27 14:59:16 +01:00
parent 9c248bb34d
commit 318a0345bb
1 changed files with 2 additions and 1 deletions

View File

@ -588,8 +588,9 @@ class Application_Model_StoredFile {
$fileSelect[] = $key;
}
else if ($key === "year") {
$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.
else if (in_array($key, array("track_number", "bit_rate", "sample_rate"))){