mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-23 07:13:57 +08:00
Fix count condition for generating activity [SCI-10853]
This commit is contained in:
parent
6a4d50e44a
commit
6ebc08a0f4
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ class RepositoriesController < ApplicationController
|
||||||
total_rows_count: status[:total_rows_count])
|
total_rows_count: status[:total_rows_count])
|
||||||
|
|
||||||
if status[:status] == :ok
|
if status[:status] == :ok
|
||||||
unless import_params[:preview] && (status[:created_rows_count] + status[:updated_rows_count]).positive?
|
unless import_params[:preview] || (status[:created_rows_count] + status[:updated_rows_count]).zero?
|
||||||
log_activity(
|
log_activity(
|
||||||
:inventory_items_added_or_updated_with_import,
|
:inventory_items_added_or_updated_with_import,
|
||||||
created_rows_count: status[:created_rows_count],
|
created_rows_count: status[:created_rows_count],
|
||||||
|
|
Loading…
Reference in a new issue