Closed (fixed)
Project:
Open Atrium
Version:
7.x-2.x-dev
Component:
oa_core
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Mar 2016 at 20:14 UTC
Updated:
28 Apr 2016 at 14:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Grayside commentedComment #3
Grayside commentedAdding a patch to Atrium profile to pull in the patch in #1.
Comment #4
mpotter commentedThe second part of this patch in #2 looks ok where you use oa_core_group_reference_default_current variable to set #convert_empty_to_current. However, earlier in the patch it looks like you are also using this variable to bypass any existing default setting in the view itself. That shouldn't be necessary and I think will cause regressions elsewhere in Atrium if this variable is set to true.
Was that extra step needed to get this working in the WYSIWYG?
Comment #5
Grayside commentedThe functionality that uses #convert_empty_to_current only applies to views tagged 'admin'. Media views are not tagged admin.
I added the first change block to the views plugin rather than change oa_core_select2widget_entity_validate_field() to localize impact as much as possible.
Comment #6
mpotter commentedOK, that makes sense. I'm going ahead with the commit on this then since sites need to explicitly change the variable to get this behavior.
A better long term solution is probably to add a plugin for Media Browser that shows "WYSIWYG Media" that has been embedded and doesn't belong to a space. Or maybe removing the Atrium customizations to the Library tab and creating a separate "Space Media" tab for Atrium. But those are larger issues than this, and don't want to block this one till then.
Committed to 130986a.