diff --git a/app/controllers/my_module_repository_snapshots_controller.rb b/app/controllers/my_module_repository_snapshots_controller.rb index 998407882..4493b2343 100644 --- a/app/controllers/my_module_repository_snapshots_controller.rb +++ b/app/controllers/my_module_repository_snapshots_controller.rb @@ -74,7 +74,7 @@ class MyModuleRepositorySnapshotsController < ApplicationController @repository_snapshots = @my_module.repository_snapshots .where(parent_id: params[:repository_id]) - .order(updated_at: :desc) + .order(created_at: :desc) render json: { html: render_to_string( partial: 'my_modules/repositories/full_view_sidebar', diff --git a/app/helpers/my_modules_helper.rb b/app/helpers/my_modules_helper.rb index f467093de..b04d2cb31 100644 --- a/app/helpers/my_modules_helper.rb +++ b/app/helpers/my_modules_helper.rb @@ -91,7 +91,7 @@ module MyModulesHelper def assigned_repository_simple_view_footer_label(repository) if repository.is_a?(RepositorySnapshot) return t('my_modules.repository.snapshots.simple_view.snapshot_bottom_label', - date_time: l(repository.updated_at, format: :full)) + date_time: l(repository.created_at, format: :full)) end t('my_modules.repository.snapshots.simple_view.live_bottom_label') diff --git a/app/views/my_modules/repositories/_full_view_snapshot_table.html.erb b/app/views/my_modules/repositories/_full_view_snapshot_table.html.erb index 71df469d8..c0a073bc4 100644 --- a/app/views/my_modules/repositories/_full_view_snapshot_table.html.erb +++ b/app/views/my_modules/repositories/_full_view_snapshot_table.html.erb @@ -3,7 +3,7 @@ data-type="snapshot" data-source="<%= index_dt_my_module_repository_snapshot_path(@my_module, @repository_snapshot) %>" data-repository-name="<%= @repository_snapshot.name %>" - data-repository-snapshot-created="<%= l(@repository_snapshot.updated_at, format: :full) %>" + data-repository-snapshot-created="<%= l(@repository_snapshot.created_at, format: :full) %>" data-assigned-items-count="<%= @repository_snapshot.repository_rows.count %>" data-default-order="<%= default_snapshot_table_order_as_js_array %>" data-default-table-columns="<%= default_snapshot_table_columns %>" diff --git a/app/views/my_modules/repositories/_full_view_version.html.erb b/app/views/my_modules/repositories/_full_view_version.html.erb index ed82865a9..9be108053 100644 --- a/app/views/my_modules/repositories/_full_view_version.html.erb +++ b/app/views/my_modules/repositories/_full_view_version.html.erb @@ -19,7 +19,7 @@ data-status="<%= repository_snapshot.status %>" data-table-url="<%= full_view_table_my_module_repository_snapshot_path(@my_module, repository_snapshot) %>">
<%= t('my_modules.repository.snapshots.full_view.created_by', full_name: repository_snapshot.created_by.full_name) %>