Ingo Schommer 1f0a78e57b FIX More context for GridFieldDataColumns callbacks
This emulates the callback signature from
GridFieldEditableColumns in the symbiote/silverstripe-gridfieldextensions module, which extends GridFieldDataColumns. In case canEdit() fails, this component passes control back to the parent (rendering a standard column content rather than a formfield). Which can become an issue if you've defined custom 'callback' handlers on setDisplayFields() - GridFieldDataColumns passes in only one arg (`$record`), while GridFieldEditableColumns passes in three (`$record`, `$col` and `$grid`).

While you could argue that this is a bug in the other module,
I think this additional context is beneficial for the main
GridFieldDataColumns use case as well, and it just happens to fix that bug.
2020-07-09 09:33:21 +12:00
2020-05-04 09:10:51 +12:00
2019-11-20 16:26:13 +13:00
2017-04-28 14:59:42 +12:00
2020-06-15 12:35:00 +12:00
2020-05-26 14:31:06 +12:00
2018-06-01 10:14:42 +12:00
2017-10-12 11:53:12 +13:00
2017-12-05 12:14:22 +00:00
2020-05-28 18:05:21 +12:00
2019-02-01 15:56:29 +13:00
2018-02-08 10:32:56 +00:00
2020-04-20 20:51:15 +01:00
2018-03-27 11:49:04 +01:00

SilverStripe Framework

Build Status Build Docs Latest Stable Version Latest Unstable Version codecov SilverStripe supported module Total Downloads License

PHP framework forming the base for the SilverStripe CMS (https://silverstripe.org). Requires a silverstripe-installer base project. Typically used alongside the cms module.

Installation

See installation on different platforms, and installation from source.

Bugtracker

Bugs are tracked on github.com. Please read our issue reporting guidelines.

Development and Contribution

If you would like to make changes to the SilverStripe core codebase, we have an extensive guide to contributing code.

Attribution

Description
No description provided
Readme 162 MiB
Languages
PHP 99.4%
Scheme 0.5%