CC-4212: Smart Playlist: The formats of 'Bit Rate' are not matched between Media Library and Criteria
- fixed
This commit is contained in:
parent
edc32a1182
commit
1bd94a0757
|
@ -1307,6 +1307,10 @@ EOT;
|
||||||
// if the column is timestamp, convert it into UTC
|
// if the column is timestamp, convert it into UTC
|
||||||
if ($column->getType() == PropelColumnTypes::TIMESTAMP) {
|
if ($column->getType() == PropelColumnTypes::TIMESTAMP) {
|
||||||
$spCriteriaValue = Application_Common_DateHelper::ConvertToUtcDateTimeString($criteria['value']);
|
$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 {
|
} else {
|
||||||
$spCriteriaValue = $criteria['value'];
|
$spCriteriaValue = $criteria['value'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue