mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
Fix generating of double activities [SCI-10644]
This commit is contained in:
parent
f6f9ea1990
commit
b36c4fdefd
2 changed files with 14 additions and 11 deletions
|
@ -57,6 +57,7 @@ class MyModuleTagsController < ApplicationController
|
||||||
@mt.created_by = current_user
|
@mt.created_by = current_user
|
||||||
@mt.save
|
@mt.save
|
||||||
|
|
||||||
|
if @mt.valid?
|
||||||
my_module = @mt.my_module
|
my_module = @mt.my_module
|
||||||
|
|
||||||
Activities::CreateActivityService
|
Activities::CreateActivityService
|
||||||
|
@ -69,6 +70,7 @@ class MyModuleTagsController < ApplicationController
|
||||||
my_module: my_module.id,
|
my_module: my_module.id,
|
||||||
tag: @mt.tag.id
|
tag: @mt.tag.id
|
||||||
})
|
})
|
||||||
|
end
|
||||||
redirect_to my_module_tags_edit_path(format: :json), turbolinks: false,
|
redirect_to my_module_tags_edit_path(format: :json), turbolinks: false,
|
||||||
status: :see_other
|
status: :see_other
|
||||||
end
|
end
|
||||||
|
|
|
@ -67,6 +67,7 @@ window.initDateTimePickerComponent = (id) => {
|
||||||
},
|
},
|
||||||
clearDate() {
|
clearDate() {
|
||||||
this.date = null;
|
this.date = null;
|
||||||
|
this.$refs.vueDateTime.manualUpdate = true;
|
||||||
this.$refs.vueDateTime.datetime = null;
|
this.$refs.vueDateTime.datetime = null;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
if (this.onChange) this.onChange(null);
|
if (this.onChange) this.onChange(null);
|
||||||
|
|
Loading…
Add table
Reference in a new issue