Skip to content

Commit

Permalink
fix detaching views from parent ontology on update (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni authored Oct 12, 2023
1 parent b7cdcbe commit 215ef30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ontologies_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,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"
@ontology.viewOf = '' if @ontology.isView.eql? "0"
error_response = @ontology.update
if response_error?(error_response)
@categories = LinkedData::Client::Models::Category.all
Expand Down

0 comments on commit 215ef30

Please sign in to comment.