Commit Graph

112 Commits

Author SHA1 Message Date
github-actions 515c2b4573 Merge branch '4' into 5 2024-05-23 21:40:05 +00:00
github-actions 079bec6487 Merge branch '4.0' into 4 2024-05-23 00:10:25 +00:00
Guy Sartorelli 945ea7fc0b
FIX Make child responsible for its own nested gridfield 2024-05-22 10:37:35 +12:00
Steve Boyd c044b66aec API Set extension hook implementation visibility to protected 2024-05-16 17:45:28 +12:00
Loz Calver 80a4d9c311
FIX: Fixed move to prev/next page functionality (fixes #307) 2024-05-16 10:40:00 +12:00
Niklas Forsdahl a42cd43780 Only allow one GridFieldNestedForm component per GridField. 2024-05-15 09:03:32 +03:00
Niklas Forsdahl a9b0a70155 Throw 404 error on grid field nested form move-to-parent action,
if no record is found.
2024-05-07 18:20:56 +03:00
Niklas Forsdahl 8f505659f0 Only add nested form to nested gridfield child if that child is of
the same class as the parent record.
2024-05-07 18:02:06 +03:00
Niklas Forsdahl 9ab3ed67a7 Throw an exception in Nesed Gridfield if an invalid relation is configured. 2024-05-07 12:36:44 +03:00
Niklas Forsdahl 1993acba3a Linting and typehinting fixes for nested grid field 2024-05-07 12:35:16 +03:00
Niklas Forsdahl 46e5cccdb4 Changed some PHPDoc return types to real typehings in nested gridfield. 2024-04-24 11:03:48 +03:00
Niklas Forsdahl bc1180b62c Throw exception in nested gridfields if the relation is invalid. 2024-04-24 10:42:55 +03:00
Niklas Forsdahl 5e6097214e Added phpdoc for nested grid field item request handler class. 2024-04-24 10:25:45 +03:00
Niklas Forsdahl 70b838ea8c Removed legacy disabling of security token and strict form method check
for nested gridfields, doesn't seem to be needed anymore.
2024-04-24 10:17:22 +03:00
Niklas Forsdahl c517c693f9 Don't assume records are DataObjects in nested gridfields.
Also don't assume the list is filterable.
2024-04-24 09:57:24 +03:00
Niklas Forsdahl f7b8aea3f8 PHPDoc additions and linting fixes for gridfield nested form 2024-04-24 09:40:16 +03:00
Niklas Forsdahl 847ce07ab0 Fixes and some refactoring for max nesting level handling in
nested gridfields.
2024-04-24 09:19:32 +03:00
Niklas Forsdahl cfcf8d2e8e Refactored nested GridField move to parent functionality. 2024-04-23 17:03:00 +03:00
Niklas Forsdahl fc40420daa Added configurable max nesting level for nested GridFields 2024-04-18 18:04:56 +03:00
Niklas Forsdahl f8c777dcc5 Changed naming schema for nested GridFields, to not include [ or ]
characters. This makes them work also with the search component.
2024-04-18 14:39:25 +03:00
Niklas Forsdahl c415d43731 Fixed linting issues 2024-04-18 12:41:58 +03:00
Niklas Forsdahl c043220949 Changed base-class of GridFieldNestedForm, it doesn't share much with
GridFieldDetailForm anymore.
Also changed how Breadcrumbs work.
2024-04-18 10:56:35 +03:00
Niklas Forsdahl 654b7294fa Renamed GridFieldNestedForm_ItemRequest, to conform with coding styles.
Also added some php-docs for some public functions.
2024-04-18 10:17:04 +03:00
Niklas Forsdahl 27dc6360ae Styling for nested GridFields without title.
Added loading indicator while nested GridField is being fetched.
2024-04-15 09:52:33 +03:00
Niklas Forsdahl db3edd7f16 NEW Initial nested gridfield component 2024-04-12 16:45:29 +03:00
Guy Sartorelli 46b4763e8c
Merge branch '3' into 4.0 2024-02-27 13:45:03 +13:00
Guy Sartorelli d34c92dba7
Merge branch '3.6' into 3 2024-02-27 13:44:19 +13:00
Tom Oude Rengerink 78fa8ba747
ENH Make toast message "Records reordered." localisable (#321)
Co-authored-by: Tom Oude Rengerink <tom@cube.nl>
2024-01-24 11:41:14 +13:00
Guy Sartorelli 4bc464d05c
Merge branch '3' into 4.0 2023-08-30 10:19:12 +12:00
Guy Sartorelli 9c70b0175b
Merge branch '3.6' into 3 2023-08-30 10:18:58 +12:00
Guy Sartorelli 25a0c4d470
Merge branch '3' into 4.0 2023-08-30 10:17:49 +12:00
Guy Sartorelli 47171ee4c2
FIX Allow editing extra fields from ManyManyThroughList. 2023-08-21 09:02:42 +12:00
Sabina Talipova a2ea473369
MNT Replaced SearchContext::getQuery limit param with null (#367) 2023-07-05 17:20:56 +12:00
Guy Sartorelli c9eac61657
Merge branch '3' into 4.0 2023-04-27 14:04:39 +12:00
Guy Sartorelli bb6c0396f1
Merge branch '3.5' into 3.6 2023-04-06 10:40:35 +12:00
Steve Boyd 17f92d08ba FIX Handle arrays in default_sort 2023-04-06 10:30:12 +12:00
Steve Boyd 58807b73dd MNT Remove legacy upgrader config 2023-01-20 16:03:02 +13:00
Steve Boyd fd24736b52
FIX Use DataList::orderBy() (#353) 2023-01-18 14:00:38 +13:00
Maxime Rainville d5d438c5cc
Merge pull request #334 from josephlewisnz/feature/republish-live-records-3
Feature/republish live records 3
2022-11-18 15:38:05 +13:00
Steve Boyd aa6ac7a1a2 API Stop using deprecated API 2022-11-03 11:45:10 +13:00
Chris Penny 23a5154c97
ENH: Update reorderItems() to use ORM where possible (#336)
* ENH: Update reorderItems() to use ORM where possible

* Increase test coverage of orderable rows
2022-08-04 10:51:40 +12:00
bumbus f56bf67e40
FIX Fixes GridFieldEditableColumns::isChanged method for non-string values (e.g. arrays for has_many / many_many relations) (#343)
* fixes GridFieldEditableColumns::isChanged method for non-string values (e.g. arrays for has_many / many_many relations)

* revert formatting

Co-authored-by: Bumbus <sf@arillo.ch>
2022-08-01 13:22:09 +12:00
Mo Alsharaf 547ec8aa50 ENH: Add performance fixes on saving editable columns
- Use one query to fetch all items needed to be saved.
- Only save items that are changed.
2022-06-16 13:02:16 +12:00
Steve Boyd 93e4379c3d ENH PHP 8.1 compatibility 2022-04-13 17:44:44 +12:00
Guy Sartorelli ec93c994f8
NEW Extend new AbstractGridFieldComponent class (#332)
This makes this module's `GridFieldComponent` classes `Injectable`, and allows any future enhancements in the new abstract class to automatically apply without requiring additional changes in this module.

The class is introduced in silverstripe/framework 4.11.0 so the dependency constraint needs to be updated.

Also update docs to encourage use of dependency injection.
2022-03-04 10:12:24 +13:00
Guy Sartorelli 8c4e924bfa
ENH: Prefer dependency injection over use of `new` keyword. (#333)
* ENH: Prefer dependency injection over use of `new` keyword.

* MNT Fix phpcs linting error.
2022-02-18 16:44:54 +13:00
josephlewisnz 2928504b3c removed param 2022-02-18 08:39:59 +13:00
josephlewisnz 8e77095de0 updated to create syntax 2022-02-17 13:10:44 +13:00
josephlewisnz 07c97e45b2 Added the ability to autopublish items that are already live 2022-02-17 12:53:13 +13:00
David Toews 6d6cf4a225
ENH applies default sort order to CMS ordering (#325)
* (cms interface) applies default sort order to CMS ordering

This allows secondary sort ordering to be applied when it exists and when the objects have not been sorted manually

* (sort logic) adds additional checks for non DataList or unsorted cases

* Update src/GridFieldOrderableRows.php

Co-authored-by: Michal Kleiner <mk@011.nz>

Co-authored-by: Michal Kleiner <mk@011.nz>
2022-02-02 15:29:57 +13:00