Hello, recently i need add sortable to a model. However, after setup I noticed the pagination of the list was lost, it was displayed instead with a list of all records in the database. Is this the default behavior of the Sortable Trait or is it a pre-hidden bug in the code, or i missing something? To be more specific, I made the following settings:
Step 1: Add trait to target model:
class MyModel extends Model
{
const SORT_ORDER = 'order';
use \October\Rain\Database\Traits\Sortable;
// Other
}
Step 2: Config list_config.yaml (in related controller):
# Config before add the Reoderable trait - PAGINATED SHOW
recordsPerPage: 20
# Addition config after add the trait - PAGINATION MISSING, SHOW ALL RECORDS
structure:
showTree: false
showReorder: true