Commit Graph

78 Commits

Author SHA1 Message Date
th3hamm0r e9bd2f498f Missing adaptions for PHP 7.2 (#124)
Two usages of `Object` have not been replaced with `SS_Object` in #123 .
2018-09-25 09:39:22 -03:00
Ralph Slooten e6c2bc712c Ensure compatibility with SS 3.7 & PHP 7.2 (#123) 2018-08-07 09:37:18 -03:00
UndefinedOffset 5c2ed5ecd0 Backport of #121 2018-06-07 09:58:42 -03:00
UndefinedOffset d616a783c6 Fixed typo 2018-03-01 10:51:44 -04:00
UndefinedOffset a4103f081e Fixed compatibility with SilverStripe 3.5 or less 2018-03-01 10:47:40 -04:00
UndefinedOffset 093364a150 Fixed issue where DBInt was not being allowed 2018-03-01 10:36:26 -04:00
Robbie Averill 36dcdcef6b Remove closing PHP tag (#107)
To prevent whitespace being sent after the closing tag
2017-06-07 07:06:41 -03:00
UndefinedOffset d5fb2aaa9d Fixed issue where queries could fail when using append to top and the base table does not contain the parent relationship (Fixes #101) 2017-04-20 10:45:11 -03:00
UndefinedOffset 09b295d10d Fixed bug causing the ancestry to not be looked at correctly when trying to find the sort column (Fixes #100) 2017-04-18 09:31:47 -03:00
UndefinedOffset 1fecff9cc7 Switched order of the is_subclass_of check (Fixes #99) 2017-04-13 10:17:22 -03:00
UndefinedOffset 94e916b4d9 Fixed issue where the headers could be missing even when sorting is off
Fixed issue where the sort direction would not apply when sorting using the headers
2016-11-24 10:01:29 -04:00
UndefinedOffset 5d2aa717f3 Fix crash when the sort state is empty or not set 2016-11-22 09:34:35 -04:00
Matthias Schelling d3cfda5fe1 Use Sort of GridField Header (#96)
When not in 'Drag&Drop reordering' mode ('sortableToggle' is false) and a SortColumn is set by GridField's header, this last one should be used; otherwise, when the user clicks on a sortable header, the list is reloaded and the header shows a up/down sorting arrow, but this doesn't reflect the actual sorting.
2016-11-18 14:13:54 -04:00
UndefinedOffset 0270e32c83 Fixed php doc typo 2016-05-03 12:18:40 -03:00
Ed Chipman 2f5cee4e36 Fixed query error causing crash on postgres (fixes #87) 2016-02-13 13:43:39 -04:00
Ed Chipman d37fdd2ea9 Added support for overriding the relationship name lookup (issue #86) 2016-02-09 13:32:43 -04:00
Ed Chipman 10a52463f4 Added support for updating stages on versioned extensions managed through GridFieldSortableRows (ref #77) 2016-02-06 17:00:23 -04:00
Peter Thaleikis 1a55c0599c Fixing bug "must be an Int, column is of type int" 2015-12-10 19:32:09 -04:00
Ed Chipman fae85f04c1 First pass of new page sort method issue #72 2015-09-06 20:45:00 -03:00
UndefinedOffset 81e8fae97a Fixed issue where append to top would not correct the order properly in model admin fixes #71 2015-05-07 12:44:55 -03:00
Dan Brooks c6bd9e1878 Allow installation anywhere by adding yml config 2015-04-13 22:17:21 +01:00
Matthew Hailwood 70512329a1 Allow 'disableSelection' to be disabled 2015-04-07 10:09:06 +12:00
UndefinedOffset b0d1ad1e9c Changed notice for many_many relationships if the extra field is not an int issue #62 2014-10-16 10:25:23 -03:00
ismooth 3dfe104b53 Initial sorting equals sortColumn
After a user has changed sorting order of objects in the list, and when drag&drop is disabled, sorting is made by $default_sort from that DataObjects property or default set by SS. This results in different sorting when checkbox is enabled or disabled what confuses users. This change always sorts the list by $sortColumn, so that user always sees same sorting.
2014-10-03 16:01:27 +02:00
James Cocker e493231556 Fixes fixSortColumn's Random Inital Sorting
When loading a GridField with several new items without a sort order (e.g. after uploading 10 images via GridFieldBulkEditingTools), it would previously apply a seemingly random order to them. This fix ensures that the order applied is the same order as the items were created (or uploaded) in.
2014-08-06 16:34:25 +01:00
Ed Chipman 81886ed81a Replaced use of DataList::where() with DataList::filter() 2014-08-02 13:55:52 -03:00
UndefinedOffset e3895cc5ef Fixed issue #48 where duplicate sort indexes would occur when appending to top instead of the bottom 2013-10-22 10:36:08 -03:00
Ed eb1e736805 Made adjustments to make the changes more flexible
Fixed issue causing SortableGridField to not work on ModelAdmin lists
2013-10-19 14:34:45 -03:00
g4b0 aa222987af Append new items to the top by default 2013-09-04 15:05:28 +02:00
Ed cd20fdf697 Added event methods that allow detection of the sort action being started or completed resolves #39 2013-08-04 12:15:37 -03:00
Ed 830115fa4f Removed extra language that was not needed
Renamed some of the internal actions
2013-07-18 20:54:33 -03:00
Ed 8b10f39dce Fixed issue with 3.1 caused by DataList being full immutable issue #33 2013-07-10 14:24:00 -03:00
Ed f75ebaea34 Improved how the last edit table is found using ClassInfo::baseDataClass() 2013-05-25 20:42:35 -03:00
Ed fc2d17ace5 Improved how the last edit table is found using ClassInfo::baseDataClass() 2013-05-25 20:28:46 -03:00
Ed a44c66dcb9 Fixed issue caused if the LastEdited column is not on the same table as the sort column 2013-05-25 13:35:55 -03:00
Ed 5af07ed75d LastEdited date is now changed when sorting rows Fixes #35 2013-05-24 19:36:26 -03:00
UndefinedOffset 426b6173c6 Better handling of error if the sort column cannot be found in model classes db fields 2013-03-08 14:15:22 -04:00
Sean Harvey c40488a423 Fixing undefined variable $dataList 2013-02-12 15:19:25 +13:00
Ed 7f2a6dc525 Prevent calling fixSortColumn() and saveGridSort() with UnsavedDataLists 2013-02-08 19:47:34 -04:00
Ed fef252975b Formatting fix 2013-02-06 19:44:43 -04:00
Ed 1dba2a911a Fixed issue with 3.1 were the sort order of all items in the list would be modified if one item is detected to have an sort order of 0 2013-02-06 19:38:20 -04:00
unclecheese 1575323037 BUGFIX: Use config layer to check for decorated $db fields 2013-01-31 13:03:33 -05:00
flxbot d26ae08e69 Update code/forms/GridFieldSortableRows.php
fixes the bug mentiond in issue 24
2013-01-27 15:03:24 +01:00
Ed b54e6f12cf Improved updating of sort orders to use raw queries resolves issue 4 2013-01-23 20:11:22 -04:00
Ed fec61f43ad Formatting fixes 2012-12-30 15:11:33 -04:00
Ed 8242816b0f et Fixed compatibility issues with SilverStripe 3.1 (issue #19) 2012-12-28 14:37:25 -04:00
Ed ff188ed1ec Fixed compatibility issues with SilverStripe 3.1 (issue #19) 2012-12-28 14:35:06 -04:00
Ed 1d49529253 Merge remote-tracking branch 'lrcremote/bug-fix' 2012-10-13 12:46:39 -03:00
UndefinedOffset d76ab46764 Corrected formatting 2012-10-12 09:36:45 -03:00
UndefinedOffset bdc7215bbd Added catch to ensure the sort column is an Int or a subclass of the data type Int (fixes #12) 2012-10-12 09:34:01 -03:00