Fix display of base skills (#100)
Base skills were not displaying due to a missing case in our search code. This is now fixed.
This commit is contained in:
parent
4567766530
commit
dfbfada0d0
1 changed files with 7 additions and 0 deletions
|
|
@ -158,6 +158,13 @@ module Api
|
|||
.where(job: { base_job: job.base_job.id }, emp: true)
|
||||
.where.not(job: job.id)
|
||||
)
|
||||
.or(
|
||||
JobSkill.joins(:job)
|
||||
.method("#{locale}_search").call(search_params[:query])
|
||||
.where(conditions)
|
||||
.where(job: { base_job: job.base_job.id }, base: true)
|
||||
.where.not(job: job.id)
|
||||
)
|
||||
else
|
||||
JobSkill.all
|
||||
.joins(:job)
|
||||
|
|
|
|||
Loading…
Reference in a new issue