CC-4380: Show ReplayGain value in the Library page

- done
This commit is contained in:
James 2012-09-10 14:37:38 -04:00
parent 60cf74a602
commit 0ab08af48f
2 changed files with 6 additions and 1 deletions

View file

@ -118,7 +118,7 @@ class Application_Model_Datatables
foreach ($searchCols as $col) {
$simpleWhere['clause']["simple_".$col] = "{$col}::text ILIKE :simple_".$col;
$simpleWhere['params']["simple_".$col] = "%".$term."%";
$simpleWhere['params']["simple_".$col] = "%".$term."%";
}
$outerCond[] = "(".implode(" OR ", $simpleWhere['clause']).")";
}

View file

@ -688,6 +688,11 @@ class Application_Model_StoredFile
$blSelect[] = "login AS ".$key;
$fileSelect[] = "sub.login AS $key";
$streamSelect[] = "login AS ".$key;
} elseif ($key === "replay_gain") {
$plSelect[] = "NULL::NUMERIC AS ".$key;
$blSelect[] = "NULL::NUMERIC AS ".$key;
$fileSelect[] = "replay_gain AS $key";
$streamSelect[] = "NULL::NUMERIC AS ".$key;
}
//same columns in each table.
else if (in_array($key, array("length", "utime", "mtime"))) {