CC-4231: Library: Prevent audio preview popup for dynamic blocks

- done
This commit is contained in:
denise 2012-08-15 12:51:53 -04:00
parent 4d9a31b3c1
commit 7225345541
3 changed files with 10 additions and 1 deletions

View file

@ -95,6 +95,11 @@ class Application_Model_Datatables
$r['length'] = $pl->getLength();
} else if ($r['ftype'] == "block") {
$bl = new Application_Model_Block($r['id']);
if ($bl->isStatic()) {
$r['bl_type'] = 'static';
} else {
$r['bl_type'] = 'dynamic';
}
$r['length'] = $bl->getLength();
}
}