silverstripe / silverstripe-dms

Adds a Document Management System to Silverstripe
BSD 3-Clause "New" or "Revised" License
40 stars 52 forks source link

Add support for GridfieldOrderableRows #212

Closed sekjal closed 6 years ago

sekjal commented 6 years ago

GridfieldExtensions' GridfieldOrderableRows is functionally quite similar (if not identical) to GridFieldSortableRows, and not all developers may want to support both modules. This commit adds fallback support for sorting Document Sets using GridfieldOrderableRows if it is installed, and GridFieldSortableRows is not.

To test:

  1. Uninstall GridFieldSortableRows (or start with an install without it)
  2. Install GridFieldExtensions
  3. Create/Open a Document Set
  4. Make sure there are multiple files within.
  5. Drag/drop reorder without errors