Jake Bentvelzen
cccc5241cd
fix(GridFieldOrderableRows/ArrayList): Fix ->sort on ArrayList to not use quotes (to work around a bug in framework 3.1+)
2016-06-22 11:27:38 +10:00
Marcus
b09519980f
Merge pull request #140 from SilbinaryWolf/feature-immediateupdateflag
...
feat(GridFieldOrderableRows): Re-order gridfield items without immediate reload
2016-04-20 13:34:47 +10:00
Jake Bentvelzen
51b5e657d6
fix(GridFieldOrderableRows): Added additional SQL that updates the "LastEdited" column if working with a non-ManyManyList
2016-04-16 12:49:22 +10:00
Jake Bentvelzen
1e3d51730f
feat(GridFieldOrderableRows): Added the ability to change setting on GridFieldOrderableRows so that instead of updating the order immediately, it updates when you hit 'Save Draft' or 'Save and Publish'.
2016-04-10 18:48:21 +10:00
Jake Bentvelzen
04d3f368c2
Added functionality so that GridFieldOrderableRows updates *_versions table for Versioned data objects.
2016-03-08 15:42:57 +11:00
Loz Calver
91b3550ab8
Add extension hook after re-ordering items
2015-11-03 14:56:11 +00:00
Peter Thaleikis
05e64f237c
fixing phpdoc blocks to refering to Objects to built-in types of PHP
2015-10-06 20:14:02 +13:00
Peter Thaleikis
9e3e51ebe2
changing from windows line endings to linux line endings
2015-09-21 22:49:02 +12:00
Damian Mooyman
f57278b11a
BUG Ensure that sorting a row doesn't destroy any unsaved inline changes
2015-09-14 14:53:49 +12:00
Jake Bentvelzen
7a33105b78
Fix bug where the current sort value is pulled from the base table if the sortField has the same name when using ManyManyList
2015-07-30 15:25:30 +10:00
Nik Rolls
4015d3355f
GridFieldOrderableRows PostgreSQL compatibility
2015-07-14 08:25:50 +12:00
Pieter Hollants
ea637b0ad5
GridFieldOrderableRows: Prefix sort field with table name when sorting
...
Prevents ambiguities when the GridField's underlying DataList uses a query
that joins multiple tables having a sort field.
2015-02-23 14:29:08 +01:00
Marcus Nyeholt
4855ac5ec0
Merged in PR #56 from pitchandtone, which had actually partly been merged via a separate but very similar PR
2015-01-29 16:19:38 +11:00
John Milmine
5af8f10869
refactored to make code cleaner
2015-01-29 16:18:24 +13:00
Daniel Hensby
0f27aef412
FIX Filter by ID to be more compatible with ArrayList
...
`ArrayList` doesn't have a `byIDs` method so sorting items in an `ArrayList` breaks. This is a more forgiving way of filtering by ID.
2015-01-26 16:42:24 +00:00
Pieter Hollants
ffee8d4d35
GridFieldOrderableRows: Allow setting the reorder handles column's number
...
Until now the column with the handles starting the reorder action always
appeared as the first column at the left of the GridField. As a followup to
the previous change's for extra sort fields, this change allows specifying
a different column index. This way you can eg. move the handles behind a
category column whose sorting will always be enforced, thus giving the user
visual support in understanding the limits of drag-n-drop reordering.
2015-01-18 20:05:44 +01:00
Pieter Hollants
79972af8a2
GridFieldOrderableRows: Support extra sort fields
...
This change allows for the specification of extra sort fields that are to be
applied before the user-defined sort field's order. This is useful in
scenarios where a GridField is used with one or more "fixed" columns which
eg. categorize the entries and whose order is important but the user should
still be allowed to modify the order within a category.
This change affects the PHP code only, therefore the Javascript code will
still let the user drag rows into foreign "categories". However, after
dropping it the GridField will reload and the extra sort order will be
enforced again.
2015-01-18 20:05:41 +01:00
Adam
5ddbf9cd43
Check from ExtraFields in getSortTableClauseForIds
...
if no extrafields are on the many_many relationship error generated same fix as chillu on getSortTable
2014-07-09 22:47:11 +10:00
John Milmine
2f67044ea9
Merge branch 'ManyManyRelationOrdering' of git://github.com/dnadesign/silverstripe-gridfieldextensions
...
* 'ManyManyRelationOrdering' of git://github.com/dnadesign/silverstripe-gridfieldextensions:
fixed many many ordering so that other many many lists with the same relation aren't affected
2014-05-26 16:13:39 +12:00
John Milmine
d983768165
fixed many many ordering so that other many many lists with the same relation aren't affected
2014-05-26 16:13:19 +12:00
John Milmine
0e424821a8
Update GridFieldOrderableRows.php
...
If it's a many many relationship, then it should be based on View not edit, as the sort field will be on the relationship using many_many_extraFields. Plus the view permission allows the user to create a many relationship, so it should allow editing of the relationship.
2014-05-08 14:13:17 +12:00
Jyrki Lilja
128737d12a
Update only current record for many_many relations
...
Fixes #48 but needs more testing. I only checked that it works for one case!
2014-04-04 11:09:05 +03:00
Ingo Schommer
793f6d96ec
Fixed array_key_exists() usage in OrderableRows
2014-03-08 22:18:01 +13:00
Andrew Short
82bb0524b3
Avoid manually constructing URLs.
...
This means that URLs with query parameters are no longer incorrectly
created.
Closes #6 , #23 , #27 .
2013-10-08 09:30:59 +11:00
Andrew Short
aad2b973ce
Add allowed actions definitions
2013-07-11 12:40:13 +10:00
Zauberfisch
910f77b049
MINOR: return on all setters ( fixes #16 )
2013-04-24 07:28:47 +01:00
ajshort
aa09d48112
Fix sort values not being populated.
2013-02-12 23:52:53 +11:00
ajshort
1bc24992c6
Fix incorrect property accessing.
2013-02-12 23:29:55 +11:00
ajshort
38bb120c88
Remove no longer needed property access hacks.
2013-02-10 16:34:48 +11:00
ajshort
c10810c3f6
Fix requirements being inconsistently included.
2013-02-09 01:42:48 +11:00
Andrew Short
57572def57
Clone lists for 3.0 compatibility. Closes #1 .
2013-01-10 22:26:14 +11:00
Andrew Short
e41f2fdacf
Implemented a drag-and-drop orderable rows component.
2012-12-30 16:12:06 +11:00