CC-3764: Media Library->Edit Metadata: Throw exception when trying to edit metadata
-fixed
This commit is contained in:
parent
c85c44dbb4
commit
9092b7f725
1 changed files with 3 additions and 1 deletions
|
@ -235,7 +235,9 @@ class Application_Model_StoredFile {
|
||||||
foreach ($c['user'] as $constant => $value) {
|
foreach ($c['user'] as $constant => $value) {
|
||||||
if (preg_match('/^MDATA_KEY/', $constant)) {
|
if (preg_match('/^MDATA_KEY/', $constant)) {
|
||||||
if (isset($dbmd_copy[$value])) {
|
if (isset($dbmd_copy[$value])) {
|
||||||
$md[$constant] = $this->getDbColMetadataValue($value);
|
$propelColumn = $dbmd_copy[$value];
|
||||||
|
$method = "get$propelColumn";
|
||||||
|
$md[$constant] = $this->_file->$method();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue