diff --git a/app/helpers/my_modules_helper.rb b/app/helpers/my_modules_helper.rb index 4c83473c9..a82c31a4b 100644 --- a/app/helpers/my_modules_helper.rb +++ b/app/helpers/my_modules_helper.rb @@ -35,7 +35,7 @@ module MyModulesHelper def ordered_result_of(my_module, page) page ||= 1 - my_module.results.where(archived: false).page(page).per(10).order(created_at: :desc) + my_module.results.where(archived: false).page(page).per(Constants::RESULTS_SEARCH_LIMIT).order(created_at: :desc) end def get_task_alert_color(my_module) diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index f2fa01f64..238f1e350 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -64,6 +64,8 @@ class Constants ATWHO_SEARCH_LIMIT = 5 # Max characters for repository name in Atwho modal ATWHO_REP_NAME_LIMIT = 16 + # Results limited query/display elements for pages + RESULTS_SEARCH_LIMIT = 10 #============================================================================= # File and data memory size