Skip to content

Global search doesn't work if sorting is disabled #133

@nesl247

Description

@nesl247

Currently you are checking to see if a column is orderable in order to perform a global search. You should instead be checking to see if it is searchable.

On https://github.com/bllim/laravel4-datatables-package/blob/master/src/Bllim/Datatables/Datatables.php#L517

Change: if (isset($columns_copy[$i]) && $this->input['columns'][$i]['orderable'] == "true")

To: if (isset($columns_copy[$i]) && $this->input['columns'][$i]['searchable'] == "true")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions