SAAS-491: Edit meta data not working
Fixed: Propel 1.7 does not cast string types to integers
This commit is contained in:
parent
d42db75445
commit
3c73abc786
|
@ -210,6 +210,13 @@ class Application_Model_StoredFile
|
||||||
if ($dbColumn == "track_title" && (is_null($mdValue) || $mdValue == "")) {
|
if ($dbColumn == "track_title" && (is_null($mdValue) || $mdValue == "")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Bpm gets POSTed as a string type. With Propel 1.6 this value
|
||||||
|
// was casted to an integer type before saving it to the db. But
|
||||||
|
// Propel 1.7 does not do this
|
||||||
|
if ($dbColumn == "bpm") {
|
||||||
|
$mdValue = (int) $mdValue;
|
||||||
|
}
|
||||||
# TODO : refactor string evals
|
# TODO : refactor string evals
|
||||||
if (isset($this->_dbMD[$dbColumn])) {
|
if (isset($this->_dbMD[$dbColumn])) {
|
||||||
$propelColumn = $this->_dbMD[$dbColumn];
|
$propelColumn = $this->_dbMD[$dbColumn];
|
||||||
|
|
Loading…
Reference in New Issue