CC-4380: Show ReplayGain value in the Library page
- done
This commit is contained in:
parent
60cf74a602
commit
0ab08af48f
2 changed files with 6 additions and 1 deletions
|
@ -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']).")";
|
||||
}
|
||||
|
|
|
@ -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"))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue