diff --git a/app/assets/stylesheets/components/index.scss b/app/assets/stylesheets/components/index.scss index c12d39f2a8..a480ef2190 100644 --- a/app/assets/stylesheets/components/index.scss +++ b/app/assets/stylesheets/components/index.scss @@ -6,7 +6,7 @@ @import 'summary_section'; @import 'dropdown'; @import 'field_container'; +@import 'nested_form'; @import 'input_field'; @import 'file_input_loader'; @import 'text_area_field'; -@import 'nested_form'; \ No newline at end of file diff --git a/app/controllers/ontologies_controller.rb b/app/controllers/ontologies_controller.rb index c8d38d3357..c1d76eab64 100644 --- a/app/controllers/ontologies_controller.rb +++ b/app/controllers/ontologies_controller.rb @@ -418,6 +418,7 @@ def update # Note: find_by_acronym includes ontology views @ontology = LinkedData::Client::Models::Ontology.find_by_acronym(params[:ontology][:acronym] || params[:id]).first @ontology.update_from_params(ontology_params) + @ontology.viewOf = nil if @ontology.isView.eql? "0" error_response = @ontology.update if response_error?(error_response) @categories = LinkedData::Client::Models::Category.all diff --git a/app/views/shared/_ontology_picker_single.html.erb b/app/views/shared/_ontology_picker_single.html.erb index dbcb731252..53e2b4f9df 100644 --- a/app/views/shared/_ontology_picker_single.html.erb +++ b/app/views/shared/_ontology_picker_single.html.erb @@ -10,8 +10,17 @@ <%disabled ||= nil%> diff --git a/test/components/previews/nested_form_input_component_preview.rb b/test/components/previews/nested_form_input_component_preview.rb index 60249be58a..d4e00a7a38 100644 --- a/test/components/previews/nested_form_input_component_preview.rb +++ b/test/components/previews/nested_form_input_component_preview.rb @@ -16,9 +16,4 @@ def default(object_name: 'contact') end end - private - - def long_text - "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." - end end \ No newline at end of file