From 6936f49825cc3d80f5fa1df84287cdcd882f80e5 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 14 Oct 2016 12:45:23 +0530 Subject: [PATCH] fix of announcement dissapearing when going to next page. --- app/controllers/announcements_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/announcements_controller.rb b/app/controllers/announcements_controller.rb index 640713f..3e1f354 100644 --- a/app/controllers/announcements_controller.rb +++ b/app/controllers/announcements_controller.rb @@ -18,8 +18,8 @@ class AnnouncementsController < ApplicationController feeds_anns = get_feed_announcements("index",params["source"]) end end - - if (OrbitHelper.page_number == 1 or OrbitHelper.page_number.nil?) && !params["source"].present? + # (OrbitHelper.page_number == 1 or OrbitHelper.page_number.nil?) && + if !params["source"].present? if !params['tags'].blank? top_anns = Bulletin.where(:title.ne => "",:is_preview.in=>[false,nil], :is_top => true).and(:title.ne => nil).can_display.filter_by_categories([],false).filter_by_tags(params['tags']).to_a else