Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #8087 - Locations - update to allow proper use of nested locations #4763

Merged
merged 1 commit into from Oct 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions app/overrides/add_organization_attributes.rb
@@ -1,12 +1,14 @@
# Remove Parent select box from org
Deface::Override.new(:virtual_path => "taxonomies/_step1",
:name => "remove_parent_organization_on_create",
:remove => 'code[erb-loud]:contains("select_f"):contains(":parent")'
:surround => 'code[erb-loud]:contains("select_f"):contains(":parent")',
:text => '<% if taxonomy.is_a?(Location) %><%= render_original %><% end %>'
)

Deface::Override.new(:virtual_path => "taxonomies/_form",
:name => "remove_parent_organization_on_edit",
:remove => 'code[erb-loud]:contains("select_f"):contains(":parent")'
:surround => 'code[erb-loud]:contains("select_f"):contains(":parent")',
:text => '<% if taxonomy.is_a?(Location) %><%= render_original %><% end %>'
)

# Add organization attributes to org creation
Expand Down