Skip to content

Commit

Permalink
Fix: add new submission removing old metadata (#31)
Browse files Browse the repository at this point in the history
* disable edit link in the  submissions table

* fix user edit action returning always password empty error

* fix add new submission removing old metadata
  • Loading branch information
syphax-bouazzouni authored Oct 21, 2023
1 parent b5b53da commit c89a5c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/ontologies/sections/_metadata.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
%div.ont-section-toolbar
%header.pb-2.font-weight-bold Submissions
- if @ontology.admin?(session[:user])
= link_to(new_ontology_submission_path(@ontology.acronym), "aria-label": "Add submission", title: "Add submission") do
= link_to(new_ontology_submission_path(@ontology.acronym, required: false), "aria-label": "Add submission", title: "Add submission") do
%i.fas.fa-lg.fa-plus-circle{"aria-hidden": "true", style: "margin-left: 0.75rem;"}
- unless (@submission_latest.nil? || (@submission_latest.respond_to?(:status) && @submission_latest.status == 404))
= link_to(edit_ontology_submission_path(@ontology.acronym, @submission_latest.submissionId), "aria-label": "Edit latest submission", title: "Edit latest submission") do
Expand Down

0 comments on commit c89a5c4

Please sign in to comment.