Skip to content

Many levels of relationship cause search by ' ' in string attribute using :eq #430

@cyruscavalcante

Description

@cyruscavalcante
class Model1
  has_many: :model2
end

class Model2
  belongs: :model1
  has_many: :model3
end

class Model3
  belongs: :model2
end

#datatable model3
 name: { source: "Model1.registration", cond: :eq, searchable: true, orderable: true },

#in SQL generate ex: searching by term ab01050
CAST("model1"."registration" AS VARCHAR) ILIKE '')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions