|
|
@ -211,7 +211,10 @@ class BidsController < ApplicationController
|
|
|
|
@membership = User.current.memberships.all(:conditions => Project.visible_condition(User.current))
|
|
|
|
@membership = User.current.memberships.all(:conditions => Project.visible_condition(User.current))
|
|
|
|
@option = []
|
|
|
|
@option = []
|
|
|
|
@membership.each do |membership|
|
|
|
|
@membership.each do |membership|
|
|
|
|
@option << membership.project
|
|
|
|
if(membership.project.project_type==1)
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
@option << membership.project
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# a = [1]
|
|
|
|
# a = [1]
|
|
|
|
# @project = Project.where("id in []", a)
|
|
|
|
# @project = Project.where("id in []", a)
|
|
|
@ -242,7 +245,6 @@ class BidsController < ApplicationController
|
|
|
|
@membership = User.current.memberships.all(:conditions => Project.visible_condition(User.current))
|
|
|
|
@membership = User.current.memberships.all(:conditions => Project.visible_condition(User.current))
|
|
|
|
@option = []
|
|
|
|
@option = []
|
|
|
|
@membership.each do |membership|
|
|
|
|
@membership.each do |membership|
|
|
|
|
@option << membership.project
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# a = [1]
|
|
|
|
# a = [1]
|
|
|
|
# @project = Project.where("id in []", a)
|
|
|
|
# @project = Project.where("id in []", a)
|
|
|
|