Commit Graph

23970 Commits

Author SHA1 Message Date
Guy Sartorelli
23c1a0f849
MNT Run module-standardiser (#11283) 2024-06-20 12:16:30 +12:00
Guy Sartorelli
27873939f4
Merge pull request #11270 from creative-commoners/pulls/5.2/remove-self
ENH Use class name instead of self
2024-06-18 14:40:44 +12:00
Steve Boyd
620c1b0469 ENH Use class name instead of self 2024-06-18 09:37:39 +12:00
Guy Sartorelli
1e0b9056f5
FIX Don't load data up front for lazy-loaded searchable dropdown (#11278) 2024-06-17 11:59:59 +12:00
Mason Dechaineux
9546450cf2
improve DataList and ArrayList docblock comments for PHPStorm (#11263)
addresses #11247
2024-05-31 10:59:04 +12:00
Sabina Talipova
f0aaba5504
FIX HTMLEditorField is not able to show html or xml code examples (#11243) 2024-05-22 09:39:36 +12:00
Hernold Koch
470293a6d2
FIX 'which' check in 'sake' now works for aliases (#11232) 2024-05-20 11:04:44 +12:00
Guy Sartorelli
50a0018363
FIX many_many through should allow subclasses (#11230)
```php
class HomePage extends Page
{
    private static $many_many = [
        'HeroImages' => [
            'through' => PageImageLink::class,
            'from' => 'Page',
            'to' => 'Image',
        ]
    ];

}
```

```php
class PageImageLink extends DataObject
{
    private static $has_one = [
        'Page' => SiteTree::class,
        'Image' => Image::class,
    ];
}

This fails because the linking object's relation class doesn't exactly match the owner. Sharing the linking objects across various entries in the ancestry should be a supported use case.

Co-authored-by: Aaron Carlino <unclecheese@leftandmain.com>
2024-05-13 14:15:37 +12:00
Dominik Beerbohm
0f6d210602
FIX Correctly eagerload polymorphic has_one relations (#11204) 2024-05-08 11:12:51 +12:00
Guy Sartorelli
241d03b352
TLN Update translations (#11224) 2024-05-08 09:31:04 +12:00
Guy Sartorelli
a198c91628
FIX Don't throw exception for empty eagerloaded relation (#11220) 2024-05-06 18:06:54 +12:00
Guy Sartorelli
a92baeaf6f
FIX Allow double dots in path when not attempting directory traversal (#11219) 2024-05-06 13:15:26 +12:00
Thomas Portelange
44f77ecdac
MNT add nullable return types to PHPDocs (#11192) 2024-04-29 09:02:59 +12:00
Guy Sartorelli
cfeb678816
Merge pull request #11185 from beerbohmdo/fix/issue-11170
FIX Ensure eagerLoading don't load has_one twice (#11170)
2024-04-18 13:40:53 +12:00
Dominik Beerbohm
135f9c6d30
FIX Ensure eagerLoading don't load has_one twice (#11170) 2024-04-18 13:27:50 +12:00
Guy Sartorelli
908bdcfc31
Merge pull request #11199 from kinglozzer/11197-oob-exception
FIX: OutOfBoundsException when recipe-core isn't installed (fixes #11197)
2024-04-16 13:32:21 +12:00
Loz Calver
a53301f673 FIX: OutOfBoundsException when recipe-core isn't installed (fixes #11197) 2024-04-15 16:59:59 +01:00
Guy Sartorelli
6743de4356
FIX Remove ambiguity for polymorphic queries (#11195) 2024-04-12 09:40:34 +12:00
github-actions
97a8da8c7d Merge branch '5.1' into 5.2 2024-04-03 05:54:35 +00:00
Thomas Portelange
cca2f7059b
ENH Update PHPDocs for methods with missing nullable return types (#11187) 2024-04-02 13:33:09 +13:00
github-actions
74abb03133 Merge branch '5.1' into 5.2 2024-03-22 08:36:08 +00:00
Guy Sartorelli
8aab888d50
FIX Fix link for managing roles (#11178) 2024-03-21 12:49:10 +13:00
github-actions
90298002a4 Merge branch '5.1' into 5.2 2024-03-19 23:26:25 +00:00
Guy Sartorelli
e68af4de40
Merge branch '4' into 5.1 2024-03-20 12:15:22 +13:00
github-actions
d22960d3ea Merge branch '4.13' into 4 2024-03-19 23:05:09 +00:00
Guy Sartorelli
6ede0316bf
Revert "Use field editorconfig when sanitising content" (#11180)
This reverts commit e5eb98cc34.
2024-03-20 12:02:54 +13:00
Guy Sartorelli
dcd33319c7
Merge branch '5.1' into 5.2 2024-03-18 15:33:54 +13:00
github-actions
c25922fedb Merge branch '4' into 5.1 2024-03-16 14:24:08 +00:00
github-actions
c1b311f6bc Merge branch '4.13' into 4 2024-03-16 14:24:06 +00:00
Guy Sartorelli
4e3add80d5
Merge pull request #11177 from lekoala/patch-52
ENH fieldList is an array or null
2024-03-15 09:14:22 +13:00
Thomas Portelange
777056d861
ENH fieldList is an array or null 2024-03-14 17:06:00 +01:00
Thomas Portelange
b031ade73a
ENH update some docblock types (#11168) 2024-03-13 10:08:56 +13:00
Guy Sartorelli
c8c2695800
Merge pull request #11163 from lekoala/patch-50
FIX handle non breakable spaces
2024-03-12 11:38:43 +13:00
Thomas Portelange
fcf5e324dd FIX Handle non-breakable spaces
Fixes issue https://github.com/silverstripe/silverstripe-framework/issues/11162
2024-03-12 11:01:09 +13:00
github-actions
c36df386ba Merge branch '5.1' into 5.2 2024-03-09 14:25:04 +00:00
Guy Sartorelli
dba87348f9
Merge pull request #11158 from lekoala/patch-47
FIX Generate salt if needed
2024-03-05 10:12:31 +13:00
Thomas Portelange
eb4ef623ab
check for empty salt 2024-03-04 08:34:43 +01:00
Guy Sartorelli
054c2389c9
Merge pull request #11166 from creative-commoners/pulls/5/check-exists
MNT Ensure composer/semver installed or skip test
2024-03-04 15:27:13 +13:00
Steve Boyd
a18fb1bcb7 MNT Ensure composer/semver installed or skip test 2024-03-04 12:52:17 +13:00
Steve Boyd
f0b799c54b Merge branch '4.12' into 4.13 2024-03-04 11:26:35 +13:00
Guy Sartorelli
4f3282bf2a
Merge pull request #11157 from lekoala/patch-46
FIX use composer runtime api
2024-02-28 09:16:25 +13:00
Thomas Portelange
59177dd315
Delete tests/php/Core/Manifest/fixtures/VersionProviderTest directory 2024-02-27 10:42:25 +01:00
Thomas Portelange
2921d68a57
Update composer.json 2024-02-27 10:40:28 +01:00
Thomas Portelange
a06ce0493a
use VersionParser instead of comparator 2024-02-26 11:44:11 +01:00
Thomas Portelange
e7bc8ae99f
FIX Generate salt if needed 2024-02-26 11:31:53 +01:00
Thomas Portelange
80e197fe4f
make error message more readable 2024-02-26 10:21:23 +01:00
Thomas Portelange
a1d1e977c5
use composer/semver 2024-02-26 10:13:34 +01:00
Thomas Portelange
071333f774
add composer/semver 2024-02-26 10:10:20 +01:00
Thomas Portelange
68b79e11ee
missing import 2024-02-26 09:54:18 +01:00
Thomas Portelange
2696922023
update return type 2024-02-26 09:52:48 +01:00