CC-4212: Smart Playlist: The formats of 'Bit Rate' are not matched between Media Library and Criteria

- fixed
This commit is contained in:
James 2012-08-13 11:32:06 -04:00
parent edc32a1182
commit 1bd94a0757
1 changed files with 4 additions and 0 deletions

View File

@ -1307,6 +1307,10 @@ EOT;
// if the column is timestamp, convert it into UTC
if ($column->getType() == PropelColumnTypes::TIMESTAMP) {
$spCriteriaValue = Application_Common_DateHelper::ConvertToUtcDateTimeString($criteria['value']);
} else if($spCriteria == "bit_rate") {
// multiply 1000 because we store only number value
// e.g 192kps is stored as 192000
$spCriteriaValue = $criteria['value']*1000;
} else {
$spCriteriaValue = $criteria['value'];
}