Commit Graph

6525 Commits

Author SHA1 Message Date
Steve Boyd
6bea5778d7 ENH Various fixes for PHP 8.1 compatibility 2022-04-08 12:38:38 +12:00
Steve Boyd
cc43326de6 Merge branch '4.10' into 4 2022-04-06 10:33:36 +12:00
Daniel Hensby
3ef3a93fb7
Merge pull request #2726 from 3Dgoo/patch-1
FIX Ensure search form start var is not a negative number
2022-03-29 13:09:45 +01:00
3Dgoo
ceeed65465
Ensure start var is not a negative number 2022-03-29 10:06:46 +01:00
Maxime Rainville
6f24df9299
Merge pull request #2724 from creative-commoners/pulls/4/eslint
DEP Update eslint-config
2022-03-25 15:58:02 +13:00
Maxime Rainville
ae8c3a3542
Merge pull request #2725 from creative-commoners/pulls/4/update-js-deps
MNT Add update JS deps workflow
2022-03-23 16:09:04 +13:00
Steve Boyd
dfa89e5342 MNT Add update JS deps workflow 2022-03-22 12:06:30 +13:00
Steve Boyd
c745b7ce61 DEP Update eslint-config 2022-03-11 13:47:04 +13:00
Steve Boyd
3b62336180
NEW Include version number in meta generator tag (#2721) 2022-03-09 14:48:02 +13:00
Michal Kleiner
07df04f3c4
Merge pull request #2720 from signify-nz/enh/gridfieldcomponents-di
ENH Prefer dependency injection for GridFieldComponents
2022-02-12 22:12:26 +13:00
Guy Sartorelli
b4e3a08b8a ENH Prefer dependency injection for GridFieldComponents
GridFieldComponents packaged with silverstripe/framework are injectable as of 4.11.0
Explicitly invoking the injector here instead of using `create()` allows backwards compatability with framework < 4.11.0 while ensuring dependency injection is still used from 4.11.0 onwards.
2022-02-12 18:48:17 +13:00
Daniel Hensby
367b9c9bf2
Merge pull request #2719 from creative-commoners/pulls/4/php74
DEP Set PHP 7.4 as the minimum version
2022-02-10 12:05:40 +00:00
Steve Boyd
3321f38615 DEP Set PHP 7.4 as the minimum version 2022-02-10 15:50:12 +13:00
GuySartorelli
86d27daa91
DOC Change "SilverStripe" to "Silverstripe" in readme (#2716) 2022-02-02 10:17:20 +13:00
Steve Boyd
6ab92e8f74 Merge branch '4.10' into 4 2022-02-01 13:58:32 +13:00
Steve Boyd
101b17f16e Merge branch '4.9' into 4.10 2022-02-01 13:58:00 +13:00
GuySartorelli
803f19b3a4
NEW Add preview state for non-versioned DataObjects. (#2692)
Currently only Versioned DataObjects are enabled for the CMS preview.
Without a navigator item, non-versioned DataObjects aren't allowed to
display in the preview panel even if they implement CMSPreviewable.
2022-01-31 14:28:02 +13:00
Steve Boyd
f824e9f654
DEP Pin colors to 1.1.2 (#2715) 2022-01-27 11:18:47 +13:00
Steve Boyd
ab22108c85 Merge branch '4.10' into 4 2022-01-27 09:43:54 +13:00
Loz Calver
ca086142b4
Merge pull request #2717 from xini/fix-visibility-field
FIX SiteTree visibility field name
2022-01-25 09:16:28 +00:00
Florian Thoma
b539924550 FIX SiteTree visibility field name 2022-01-25 11:49:11 +11:00
Sergey Shevchenko
0db24fc038
FIX SiteTree::getCMSActions unpublish action (#2703)
* TEST SiteTree::getCMSAction produces valid actions

* FIX Fix invalid SiteTree unpublish action declaration

* refactor: moved new functions to conform with existing naming conventions

see https://github.com/silverstripe/silverstripe-cms/pull/2703#discussion_r789208512
2022-01-21 13:27:02 +13:00
Nicolaas / Sunn Side Up
1338538cb9
ENH: better coding standards (#2710) 2022-01-17 12:29:25 +13:00
Steve Boyd
22417dc515 Merge branch '4.10' into 4 2021-12-22 10:23:19 +13:00
Maxime Rainville
54e474daa2
Merge pull request #2714 from creative-commoners/pulls/4.10/dynamic
MNT Rely on dynamic REQUIRE_RECIPE
2021-12-14 10:43:31 +13:00
Steve Boyd
ea81a3399b MNT Rely on dynamic REQUIRE_RECIPE 2021-12-13 15:28:37 +13:00
Maxime Rainville
87f9924df6
Merge pull request #2707 from creative-commoners/pulls/4/js
DEP Update JS dependencies
2021-11-24 15:39:44 +13:00
Steve Boyd
5b6b3906e0 DEP Update JS dependencies 2021-11-22 16:13:21 +13:00
Steve Boyd
2e9714f4d8
Merge pull request #2706 from creative-commoners/pulls/4/eslint
MNT Use caret for eslint
2021-11-22 13:37:10 +13:00
Steve Boyd
ccaec7bc07
Merge pull request #2705 from creative-commoners/pulls/4/assert-string
MNT Assert string
2021-11-22 11:55:06 +13:00
Steve Boyd
3f1765b5aa MNT Use caret for eslint 2021-11-19 12:26:16 +13:00
Steve Boyd
854393346f
MNT Assert string 2021-11-19 09:52:29 +13:00
Maxime Rainville
b888dc1414
Merge pull request #2689 from creative-commoners/pulls/4.9/behat
MNT Update behat tests
2021-11-18 17:17:27 +13:00
Steve Boyd
96fdf6dc72 Merge branch '4.9' into 4 2021-11-18 17:07:02 +13:00
Steve Boyd
1e3970fefd MNT Update behat tests 2021-11-17 14:10:48 +13:00
Maxime Rainville
db6b1c016a
Merge pull request #2700 from creative-commoners/pulls/4/remove-js-prefix
MNT Remove js prefix from require statements
2021-11-16 10:45:32 +13:00
Steve Boyd
c754486693
Merge pull request #2685 from GuySartorelli/patch-1
FIX: Treat absolute links in a consistent manner in get_by_link.
2021-11-15 15:10:58 +13:00
Guy Sartorelli
1db69ee91a ENH: Add tests for absolute URLs in get_by_link 2021-11-15 14:30:44 +13:00
Florian Thoma
480baa6ef8
FIX Use correct canonical tag on VirtualPage (#2688) 2021-11-04 14:59:14 +13:00
kevin-hine-innis
bcbeb6d626
FIX SiteTreeLinkTracking_Parser should use the getAnchorsOnPage (#2697)
Currently, the SiteTreeLinkTracking_Parser only checks the page's content for anchors.
As a result, any anchors that have been added or modified by the updateAnchorsOnPage extension in the getAnchorsOnPage method are marked ss-broken.

This change updates SiteTreeLinkTracking_Parser to get the anchors from the getAnchorsOnPage function on SiteTree. This will allow for more consistent RegEx matching and allow the updateAnchorsOnPage extension to be used when checking for broken links.
2021-11-04 09:31:34 +13:00
Steve Boyd
90a8fcfa7e MNT Remove js prefix from require statements 2021-11-02 21:55:54 +13:00
Steve Boyd
e7c49faab2
Merge pull request #2694 from creative-commoners/pulls/4/sapphire-test-nine
API phpunit9 support
2021-10-28 11:26:30 +13:00
Steve Boyd
360fbcd878 API phpunit9 support 2021-10-28 10:40:52 +13:00
Adrian Humphreys
ecd9759f83
FIX Remove unused code (#2693) 2021-10-19 12:30:00 +13:00
Maxime Rainville
9f7262f99d Update translations 2021-10-05 14:25:05 +13:00
kevin-hine-innis
2bf691f548
FIX ensure updateAnchorsOnPage extension is called (#2686)
Currently, if there are no anchors found in the page content, the updateAnchorsOnPage extension is not called.
This change will call the updateAnchorsOnPage extension regardless of the page content.
2021-09-28 12:36:37 -07:00
GuySartorelli
734eb3921f
FIX: Treat absolute links in a consistent manner in get_by_link.
Fixes #2580 

The call to `Director::makeRelative` transforms absolute links into relative links. Previously, this meant that you could pass in "https://example.co.nz/about-us" or "about-us" and get the same result, but passing in "https://example.co.nz/" and "/"  would give _different_ results.
This commit performs the transformation to a relative link _before_ checking if the path should be for the home page, which leads to more consistent results.
2021-09-21 17:09:48 +12:00
Aaron Carlino
f3a76ccf2d
NEW: getByLink plugin allows arrays of links (#2666)
* NEW: getByLink plugin allows arrays of links

* Allow configurable resolver

* Remove unused exception tag

* Refactor to preserve API backward compat

* Unit test

* Add plugin to readOne

* Fix test

* add new test
2021-09-07 09:34:52 +12:00
Steve Boyd
1794eee0ea Merge branch '4.9' into 4 2021-09-06 16:18:49 +12:00
Steve Boyd
9655f4b93e
MNT Update REQUIRE_RECIPE 2021-09-06 16:18:09 +12:00