CC-5896: Store cloud files in separate table, inherited from cc_files

Fixed broken metadata display on Library page
Fixed broken download/preview option from Library page
This commit is contained in:
drigato 2014-07-28 15:17:46 -04:00
parent f1ea100411
commit ecb072b84c
4 changed files with 24 additions and 10 deletions

View file

@ -481,7 +481,7 @@ class LibraryController extends Zend_Controller_Action
$md = $file->getMetadata();
foreach ($md as $key => $value) {
if ($key == 'MDATA_KEY_DIRECTORY') {
if ($key == 'MDATA_KEY_DIRECTORY' && !is_null($value)) {
$musicDir = Application_Model_MusicDir::getDirByPK($value);
$md['MDATA_KEY_FILEPATH'] = Application_Common_OsPath::join($musicDir->getDirectory(), $md['MDATA_KEY_FILEPATH']);
}