From 986fcc7282d707c699d04b7112035e5b92177c4d Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 19 Dec 2017 16:44:42 +0800 Subject: [PATCH] small fix for empty title --- app/controllers/personal_projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/personal_projects_controller.rb b/app/controllers/personal_projects_controller.rb index 422efa4..3bf8408 100644 --- a/app/controllers/personal_projects_controller.rb +++ b/app/controllers/personal_projects_controller.rb @@ -1,7 +1,7 @@ class PersonalProjectsController < ApplicationController def index params = OrbitHelper.params - projects = Project.where(:is_hidden=>false).sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count) + projects = Project.where(:project_title.ne => nil,:project_title.ne => "").sort_for_frontend.page(OrbitHelper.params[:page_no]).per(OrbitHelper.page_data_count) fields_to_show = Page.where(:page_id => params[:page_id]).first.custom_array_field rescue [] if fields_to_show.blank? fields_to_show = [