forked from saurabh/personal-project
small fix for empty title
This commit is contained in:
parent
abe5df7f13
commit
986fcc7282
|
@ -1,7 +1,7 @@
|
||||||
class PersonalProjectsController < ApplicationController
|
class PersonalProjectsController < ApplicationController
|
||||||
def index
|
def index
|
||||||
params = OrbitHelper.params
|
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 []
|
fields_to_show = Page.where(:page_id => params[:page_id]).first.custom_array_field rescue []
|
||||||
if fields_to_show.blank?
|
if fields_to_show.blank?
|
||||||
fields_to_show = [
|
fields_to_show = [
|
||||||
|
|
Loading…
Reference in New Issue