CC-3764: Media Library->Edit Metadata: Throw exception when trying to edit metadata

-fixed
This commit is contained in:
Martin Konecny 2012-05-04 12:47:29 -04:00
parent c85c44dbb4
commit 9092b7f725
1 changed files with 3 additions and 1 deletions

View File

@ -235,7 +235,9 @@ class Application_Model_StoredFile {
foreach ($c['user'] as $constant => $value) {
if (preg_match('/^MDATA_KEY/', $constant)) {
if (isset($dbmd_copy[$value])) {
$md[$constant] = $this->getDbColMetadataValue($value);
$propelColumn = $dbmd_copy[$value];
$method = "get$propelColumn";
$md[$constant] = $this->_file->$method();
}
}
}