Hi,
I hope I'm not missing something, but I jumped to test your new code for non-default primary key but it isn't working for me - or better the code itself is probably doing what you wanted, setting primary key, but that doesn't help with getting working backpex page.
There are two problems:
- without any optional settings, page crashes because it can't sort by
:id
- if I add
init_order(%{by: :code, direction: :asc}) it seamingly works, but pagination has links with order_by=id and same is true for cancel links and others.
The first problem is maybe problem in Backpex itself? But second seems to me like init_order isn't passed correctly?
Hi,
I hope I'm not missing something, but I jumped to test your new code for non-default primary key but it isn't working for me - or better the code itself is probably doing what you wanted, setting primary key, but that doesn't help with getting working backpex page.
There are two problems:
:idinit_order(%{by: :code, direction: :asc})it seamingly works, but pagination has links withorder_by=idand same is true for cancel links and others.The first problem is maybe problem in Backpex itself? But second seems to me like
init_orderisn't passed correctly?