Commit Graph

2820 Commits

Author SHA1 Message Date
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
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
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
Finlay Metcalfe
8b4865ed2c
FIX Return null error solved for DBQueryBuilder::shouldBuildTraceComment 2024-05-16 14:04:13 +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
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
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
Guy Sartorelli
142a318fa8
ENH Return PJAX responses from gridfield edit forms (#11206)
undefined
2024-04-26 17:13:27 +12:00
github-actions
19ea32ebfa Merge branch '5.2' into 5 2024-04-20 14:23:53 +00:00
Guy Sartorelli
72692f9f10
NEW Make default TinyMCE settings configurable 2024-04-18 15:12:16 +12:00
Guy Sartorelli
2bdc24c86a
ENH Set default valid_elements for new TinyMCE config 2024-04-18 14:38:02 +12:00
Guy Sartorelli
a4adad60e9
FIX Don't skip sanitisation when no valid elements are defined 2024-04-18 14:28:02 +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
3e1b5e6452 Merge branch '5.2' into 5 2024-04-13 14:23:22 +00:00
Guy Sartorelli
6743de4356
FIX Remove ambiguity for polymorphic queries (#11195) 2024-04-12 09:40:34 +12:00
github-actions
39c9e0d31c Merge branch '5.2' into 5 2024-04-03 05:54:37 +00: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
Guy Sartorelli
b442d9d45a
ENH Let unit tests manipulate the DB before loading fixtures (#11182) 2024-04-02 11:28:06 +13:00
Guy Sartorelli
46c5f6d9ed
Merge pull request #11184 from lekoala/patch-54
ENH Add Nice to DBField
2024-03-28 09:00:54 +13:00
Thomas Portelange
b167f470d7 ENH Add Nice to DBField
Fixes https://github.com/silverstripe/silverstripe-framework/issues/11169

(cherry picked from commit 2c35b8d84a1a2f50cd363af270c8da2c3eb7f897)
2024-03-27 14:59:37 +01:00
Thomas Portelange
492cb800fa
ENH store tableList in cache (#11183) 2024-03-26 12:03:46 +13:00
github-actions
164e2a18ab Merge branch '5.2' into 5 2024-03-22 08:36:10 +00: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
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
github-actions
0d8626f0bc Merge branch '5.2' into 5 2024-03-18 02:34:26 +00: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
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
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
8f48e9bd71 Merge branch '5.2' into 5 2024-03-09 14:25:06 +00:00
github-actions
c36df386ba Merge branch '5.1' into 5.2 2024-03-09 14:25:04 +00:00
Loz Calver
5ab9ded9e9
Merge pull request #11117 from AntonyThorpe/patch-1
Update DropdownField.php
2024-03-07 12:28:36 +00:00
Thomas Portelange
eb4ef623ab
check for empty salt 2024-03-04 08:34:43 +01: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
e7bc8ae99f
FIX Generate salt if needed 2024-02-26 11:31:53 +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
Thomas Portelange
1cf3dde9f1
Update src/Core/Manifest/VersionProvider.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2024-02-26 09:48:35 +01:00
Thomas Portelange
b53148c034
add deprecation, remove class_exists 2024-02-26 09:23:35 +01:00
Thomas Portelange
e649310f7b
Update src/Core/Manifest/VersionProvider.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2024-02-26 09:09:45 +01:00
Thomas Portelange
a2486c0859
Update src/Core/Manifest/VersionProvider.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2024-02-26 09:09:38 +01:00
Thomas Portelange
a196719502
Update src/Core/Manifest/VersionProvider.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2024-02-26 09:09:31 +01:00
Guy Sartorelli
c2b606c24c
Merge pull request #11150 from beerbohmdo/allow_override_moneyfield
Allow better subclassing of MoneyField
2024-02-26 11:20:11 +13:00
Thomas Portelange
bc09127182
use composer runtime api 2024-02-23 17:06:27 +01:00
Dominik Beerbohm
a3ce922f1d
ENH Allow better subclassing of MoneyField
Move generation of NumberField from constructor to method to allow override in subclass.
Addded test for MoneyField
2024-02-20 11:42:45 +01:00
Guy Sartorelli
528344d1b0
NEW Allow manipulating eagerloading queries (#11140) 2024-02-20 16:17:31 +13:00
Guy Sartorelli
8664d2c4e9
ENH Allow all valid true-like ini values 2024-02-16 13:29:52 +13:00
github-actions
7e30e38ae6 Merge branch '5.1' into 5 2024-02-14 22:58:30 +00:00
Guy Sartorelli
d33332cb9e
FIX Add eagerloaded data to ALL relevant lists (#11139) 2024-02-15 11:57:22 +13:00
Steve Boyd
51fd1d6b7e FIX Handle __TRAIT__ in i18nTextCollector 2024-02-13 16:33:24 -07:00
Guy Sartorelli
a00bdd727f
MNT Run module-standardiser (#11121) 2024-02-13 14:33:23 +13:00
Guy Sartorelli
343c8ff787
Merge branch '5.1' into 5 2024-02-13 13:55:30 +13:00
Thomas Portelange
b56e771ed5
FIX add missing rawurlencode (#11105) 2024-02-13 10:08:28 +13:00
Guy Sartorelli
9c4266c8f3
Merge pull request #11127 from lekoala/patch-45
FIX Unknown column 'ClassName' in field list
2024-02-13 09:51:52 +13:00
Thomas Portelange
e0107e0202
Update src/ORM/DataQuery.php
Co-authored-by: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com>
2024-02-08 09:14:27 +01:00
Thomas Portelange
2ac68a55a4
rename var 2024-02-08 09:13:40 +01:00
Guy Sartorelli
5e53dbcdbc
NEW Add a trace comment for queries in dev mode (#11065) 2024-02-08 16:29:55 +13:00
Guy Sartorelli
e87c724700
FIX Don't assume mysql handle is an object (#11129) 2024-02-08 15:07:33 +13:00
Thomas Portelange
1dd81488aa
fix unknown table
Fixes https://github.com/silverstripe/silverstripe-framework/issues/10737
2024-02-07 17:38:14 +01:00
Guy Sartorelli
26273bf371
TLN Update translations (#11125) 2024-02-07 10:16:25 +13:00
Steve Boyd
2e4bc95157 NEW Add UrlField 2024-02-02 13:43:26 +13:00
Guy Sartorelli
7f71695335
NEW Wire up symfony/validator (#11123) 2024-02-02 13:15:32 +13:00
Steve Boyd
6ccdd10c60 MNT Remove unused import 2024-01-31 16:15:36 +13:00
Steve Boyd
9d335f73d6 NEW HasOneRelationFieldInterface 2024-01-31 10:34:25 +13:00
Antony Thorpe
90a3d60b59
Update DropdownField.php
Update the enum example with a namespaces classname
2024-01-30 19:02:05 +13:00
github-actions
1eadc84a22 Merge branch '5.1' into 5 2024-01-27 14:24:02 +00:00