app/assets/javascript/pageflow/linkmap_page/editor/models/area.js in pageflow-linkmap-page-2.7.0 vs app/assets/javascript/pageflow/linkmap_page/editor/models/area.js in pageflow-linkmap-page-2.7.1
- old
+ new
@@ -9,10 +9,10 @@
// polymorphic lookup for referenceable objects i.e.
//
// pageflow.xxx.getPolymorphic(this.get('target_type'), this.get('target_id'));
//
if (this.get('target_type') === 'audio_file') {
- return pageflow.audioFiles.get(this.get('target_id'));
+ return pageflow.audioFiles.getByPermaId(this.get('target_id'));
}
else if (this.get('target_type') === 'page') {
return pageflow.pages.getByPermaId(this.get('target_id'));
}
else if (this.get('target_type') === 'external_site') {