-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
page
query string is blank when using the sorting
#22
Labels
Comments
@darinwilson - do you have issues with sorting? If not, which project are you on so I can compare controllers? |
I ended up adding my own sort since I'm not really using the sidebar widgets for filtering.
leaving this open just so someone can verify that's torch isn't having issues out of the box. |
I'm pretty sure I encountered this in CrossConnect. Gonna copy over some of my fixes from over there. |
danielberkompas
added a commit
that referenced
this issue
Nov 26, 2016
These changes allow the query string to be preserved with pagination, so you can start a search and then page through the results.
danielberkompas
added a commit
that referenced
this issue
Nov 26, 2016
The templates in the `apps/example` app needed to be regenerated using the `mix regenerate` command.
Merged
danielberkompas
added a commit
that referenced
this issue
Mar 11, 2017
These changes allow the query string to be preserved with pagination, so you can start a search and then page through the results.
danielberkompas
added a commit
that referenced
this issue
Mar 11, 2017
The templates in the `apps/example` app needed to be regenerated using the `mix regenerate` command.
danielberkompas
added a commit
that referenced
this issue
Mar 11, 2017
This was referenced Mar 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clicking on a table heading appends query strings to the URL in order to sort the data items. It should add a
sort_field
andsort_direction
key to the params (which it does). However, it also adds apage
key which is blank.Here are relevant code snippets:
We are passing in opts with no
![](https://camo.githubusercontent.com/e8c096af97ba6a5e3bafb1be2a14e4359a0413476e168733689d38173cbafce7/687474703a2f2f696e66696e6974657265642e642e70722f313651796b2b)
page
key here:We are setting the
![](https://camo.githubusercontent.com/fa793d596e3c9cdcb9d654ccfd26002018e82c9136cfb23f59e10dd60860882a/687474703a2f2f696e66696e6974657265642e642e70722f31676d66412b)
page
key here - in this case it's nil because i dont have page in the assigns:This results in the following error:
![](https://camo.githubusercontent.com/24bd002c209977ccb56990772e1bc4848424d30566134ebb7032742f61ffcc87/687474703a2f2f696e66696e6974657265642e642e70722f713636312b)
Am I missing something? Do I have to set the
page
key on the conn in the controller?The text was updated successfully, but these errors were encountered: