Commit Graph

4710 Commits

Author SHA1 Message Date
github-actions
6c3a4e26de Merge branch '5.2' into 5 2024-07-31 00:42:30 +00:00
Maxime Rainville
f91b279ef0
FIX Don't generate table alias for "from" statement that are not column names. 2024-07-30 08:36:27 +12:00
Guy Sartorelli
db05a28bc2
MNT Fix unit test (#11314) 2024-07-29 16:57:30 +12:00
Guy Sartorelli
d14ec2831a
Merge pull request #11299 from Cheddam/pulls/5/session-token-renewal-configuration
API Make token regeneration optional during autologin session renewal
2024-07-22 12:11:18 +12:00
Steve Boyd
db665a8dd8 Merge branch '5.2' into 5 2024-07-17 12:02:37 +12:00
Guy Sartorelli
b8d20dc9d5 [CVE-2024-32981] Disallow data:text/html in data attributes 2024-07-17 11:04:27 +12:00
Garion Herman
724e813b8f API Make token regeneration optional during autologin session renewal
Resolves #11281. Renewing the token/hash during an active session
can trigger a logout in the event of request failures or simultaneous
requests.

This also marks the renew method as deprecated, to be removed
entirely in 6.0.
2024-07-16 09:08:04 +09:00
Guy Sartorelli
68d8cfcd4b
Merge pull request #11301 from creative-commoners/pulls/5/toasts-behat
MNT Support assert toasts if there are mutliple toasts
2024-07-12 11:44:13 +12:00
Steve Boyd
92ffbe03fb MNT Support assert toasts if there are mutliple toasts 2024-07-11 12:10:28 +12:00
Guy Sartorelli
3829160151
Merge branch '5.2' into 5 2024-07-10 10:04:52 +12:00
Guy Sartorelli
c13ec34113
FIX Don't strip <header> tag from HTMLValue (#11302) 2024-07-09 13:18:29 +12:00
Maxime Rainville
dbc0288038
MNT ALter order of expected attribute on image test (#11286) 2024-07-01 10:36:37 +12:00
Guy Sartorelli
dcace43183
Merge branch '5.2' into 5
# Conflicts:
#	src/Core/ClassInfo.php
#	src/ORM/FieldType/DBForeignKey.php
2024-06-20 14:51:48 +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
github-actions
b7e2a6ecf8 Merge branch '5.2' into 5 2024-06-17 01:15:58 +00: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
Guy Sartorelli
be0eab2bae
NEW Allow DataObject classes to define scaffolded relation formfields (#11269) 2024-06-07 17:06:01 +12:00
Maxime Rainville
e35f12c66f
ENH Update AttributesHTML to output alt attribute even if it's empty (#11217) 2024-05-29 09:30:04 +12:00
github-actions
8886a3a93d Merge branch '5.2' into 5 2024-05-22 22:41:40 +00: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
Guy Sartorelli
699a8bf2da
FIX Loop over current scope when no argument passed to loop block 2024-05-17 15:17:02 +12:00
Guy Sartorelli
56625081b4
ENH Use allowed view button for readonly GridField (#11228) 2024-05-17 10:28:47 +12:00
github-actions
f60e1bc236 Merge branch '5.2' into 5 2024-05-16 01:13:12 +00:00
Guy Sartorelli
8afe1adc57
Merge pull request #11238 from creative-commoners/pulls/5/viewable-scalar
ENH Rendering scalars in ArrayList in templates
2024-05-15 17:33:13 +12:00
Steve Boyd
12a741feee ENH Rendering scalars in ArrayList in templates 2024-05-15 16:31:39 +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
github-actions
4429a4999d Merge branch '5.2' into 5 2024-05-11 14:24:47 +00:00
Dominik Beerbohm
0f6d210602
FIX Correctly eagerload polymorphic has_one relations (#11204) 2024-05-08 11:12:51 +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
Steve Boyd
b8f0b8ca4f FIX Handle getting HasOneRelationFieldInterface passed as an array 2024-05-02 12:06:43 +12:00
github-actions
19ea32ebfa Merge branch '5.2' into 5 2024-04-20 14:23:53 +00:00
Guy Sartorelli
a4adad60e9
FIX Don't skip sanitisation when no valid elements are defined 2024-04-18 14:28:02 +12:00
Guy Sartorelli
584968e80c
MNT Update tests to use a dataprovider
Also explicitly test both valid_elements and extended_valid_elements
2024-04-18 14:27:25 +12:00
Bernie Hamlin
99e965b5d7
FIX Use field editorconfig when sanitising content 2024-04-18 14:16:53 +12:00
Dominik Beerbohm
135f9c6d30
FIX Ensure eagerLoading don't load has_one twice (#11170) 2024-04-18 13:27:50 +12:00
Loz Calver
a53301f673 FIX: OutOfBoundsException when recipe-core isn't installed (fixes #11197) 2024-04-15 16:59:59 +01:00
github-actions
f63862df83 Merge branch '5.2' into 5 2024-03-19 23:26:26 +00: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
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
25f61141cb
Enhancements required for linkfield migration (#11171)
* ENH Add lightweight test override for Environment::isCli()

* NEW Allow JOIN with SQL UPDATE.
2024-03-20 11:49:57 +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
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
Steve Boyd
a18fb1bcb7 MNT Ensure composer/semver installed or skip test 2024-03-04 12:52:17 +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
a06ce0493a
use VersionParser instead of comparator 2024-02-26 11:44:11 +01:00