Commit Graph

24078 Commits

Author SHA1 Message Date
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
Guy Sartorelli
0bb88d0988
FIX Don't pass labelfield as value for SEarchableDropdownField (#11303) 2024-07-09 10:09:27 +12:00
Johannes Hammersen
1943f9d417
FIX DBForeignKey scaffolding missing parameter (#11295)
Co-authored-by: johannes.hammersen <Johannes.Hammersen@funkemedien.de>
2024-07-03 14:23:25 +12:00
Maxime Rainville
dbc0288038
MNT ALter order of expected attribute on image test (#11286) 2024-07-01 10:36:37 +12:00
github-actions
57fb06a1a9 Merge branch '5.2' into 5 2024-06-30 08:41:27 +00:00
Guy Sartorelli
e677b12202
Merge pull request #11287 from johannesx75/fix-remove-write-from-SearchableDropdownTrait
FIX remove write from SearchableDropdownTrait
2024-06-26 13:09:32 +12:00
Guy Sartorelli
bdd27b96b7
Merge pull request #11290 from digitall-it/patch-1
Fix #11289: Handle paths with spaces in Silverstripe's sake script
2024-06-24 12:39:32 +12:00
Giancarlo Di Massa
90eac66ea8
Update sake
Fix bug in sake that happens when the PHP interpreter is a directory with spaces in it.
2024-06-22 18:15:33 +02: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
23c1a0f849
MNT Run module-standardiser (#11283) 2024-06-20 12:16:30 +12:00
johannes.hammersen
ce5cfcac61 FIX Remove write from SearchableDropdownTrait
In the SearchableDropdownTrait::saveInto method, if the field is a has_one relationship, $record->write() was called. FormField and any other instances of saveInto should not call write - that should be called by the form itself.
2024-06-19 11:13:54 +02: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
049e546247
API Deprecate references to installation tool (#11275) 2024-06-12 15:47:12 +12:00
Guy Sartorelli
be0eab2bae
NEW Allow DataObject classes to define scaffolded relation formfields (#11269) 2024-06-07 17:06:01 +12:00
Guy Sartorelli
64ac096b46
Merge pull request #11176 from wilr/fix/reset-password-lockout
FIX mark a successful login attempt when completing a password reset
2024-06-06 11:56:45 +12:00
Will Rossiter
9361382be3
FIX mark a successful login attempt when completing a password reset (#10099) 2024-06-06 11:43:21 +12:00
github-actions
a6ab217dcd Merge branch '5.2' into 5 2024-06-04 23:33:36 +00:00
Mason Dechaineux
9546450cf2
improve DataList and ArrayList docblock comments for PHPStorm (#11263)
addresses #11247
2024-05-31 10:59:04 +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
6c65a0e452
Merge pull request #11248 from creative-commoners/pulls/5/module-standardiser-1715911070
MNT Run module-standardiser
2024-05-21 16:23:14 +12:00
Sabina Talipova
76bdc59cf5
Merge pull request #11251 from creative-commoners/pulls/5/current-scope-loop
FIX Loop over current scope when no argument passed to loop block
2024-05-20 12:54:54 +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
699a8bf2da
FIX Loop over current scope when no argument passed to loop block 2024-05-17 15:17:02 +12:00
Steve Boyd
ffb26afb2e MNT Run module-standardiser 2024-05-17 15:08:07 +12:00
Guy Sartorelli
56625081b4
ENH Use allowed view button for readonly GridField (#11228) 2024-05-17 10:28:47 +12:00
Guy Sartorelli
cd77301de1
Merge pull request #11236 from creative-commoners/pulls/5/deprecate-non-array
API Deprecate passing non-arrays to FieldList methods
2024-05-17 09:52:29 +12:00
Guy Sartorelli
7625b29937
Merge pull request #11239 from creative-commoners/pulls/5/module-standardiser-1715811311
MNT Run module-standardiser
2024-05-17 09:47:13 +12:00
Steve Boyd
264dfac902 MNT Run module-standardiser 2024-05-16 14:43:48 +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
Steve Boyd
0ba85bc1d0 API Deprecate passing non-arrays to FieldList methods 2024-05-14 12:43:59 +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
241d03b352
TLN Update translations (#11224) 2024-05-08 09:31:04 +12:00
Guy Sartorelli
0c8fcfb54c
Merge pull request #11213 from creative-commoners/pulls/5/required-has-one
FIX Handle getting HasOneRelationFieldInterface passed as an array
2024-05-07 13:01:59 +12:00
Guy Sartorelli
3449d8bf21
FIX Revert "ENH Add Nice to DBField" (#11222)
This reverts commit b167f470d7.
2024-05-07 11:45:48 +12:00
Guy Sartorelli
e468b719cf
TLN Update translations (#11221) 2024-05-06 18:13:56 +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
github-actions
9fc9d18c7a Merge branch '5.2' into 5 2024-05-04 14:25:17 +00:00
Steve Boyd
b8f0b8ca4f FIX Handle getting HasOneRelationFieldInterface passed as an array 2024-05-02 12:06:43 +12:00
Thomas Portelange
44f77ecdac
MNT add nullable return types to PHPDocs (#11192) 2024-04-29 09:02:59 +12:00