Skip to content
Snippets Groups Projects
Commit c1b7a2c1 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[aglorithms][templates] Add version field when creating a new version

parent ffb9e4bd
No related branches found
No related tags found
1 merge request!325Improve new version handling
......@@ -331,6 +331,7 @@ function setupEditor(algorithm, dataformats, libraries)
{% if not edition %}
{% if algorithm_version > 1 and not fork_of %}
name: '{{ algorithm_name }}',
version: '{{ algorithm_version }}',
previous_version:'{{ algorithm_author }}/{{ algorithm_name }}/{{ algorithm_version|add:-1 }}',
{% else %}
name: $('#algorithm_name')[0].value.trim(),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment