Commit Graph

4723 Commits

Author SHA1 Message Date
github-actions
f8c33e96a0 Merge branch '5.3' into 5 2024-09-11 03:07:31 +00:00
github-actions
32cafb5c75 Merge branch '5.2' into 5.3 2024-09-11 03:07:30 +00:00
Guy Sartorelli
de515d3bbf
MNT Resolve deprecation warnings in tests (#11364) 2024-09-11 12:16:59 +12:00
Steve Boyd
a0ad753974 NEW Create DBClassNameVarchar 2024-09-10 14:27:04 +12:00
Steve Boyd
16a8132bec DEP Use symfony for IPUtils 2024-08-20 09:25:22 +12:00
Guy Sartorelli
410ef74e32
Merge branch '5.2' into 5 2024-08-12 13:03:34 +12:00
Guy Sartorelli
dca62c7380
NEW Make CMSFields scaffolding configurable, plus new options (#11328)
Note that includeRelations was intentionally changed to not include has_one in 524d7a9011
2024-08-12 12:52:57 +12:00
Guy Sartorelli
eee7a84a48
NEW Add new method TabSet::changeTabOrder(). (#11329) 2024-08-12 09:33:55 +12:00
Guy Sartorelli
7b91207c12
FIX Don't error if template global is null (#11331) 2024-08-09 09:27:38 +12:00
github-actions
cdde36bb9a Merge branch '5.2' into 5 2024-08-07 04:16:13 +00:00
Guy Sartorelli
f93c9a9a34
Merge pull request #11321 from creative-commoners/pulls/5.2/normalise-external
FIX Do not suffix trailing slash to external links
2024-08-07 12:51:33 +12:00
Steve Boyd
8c80a4fd1e FIX Do not suffix trailing slash to external links 2024-08-07 10:38:25 +12:00
Guy Sartorelli
9fae48bbd7
FIX Allow clearing lazyloaded SearchableDropdownField. (#11324) 2024-08-06 15:35:36 +12:00
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