Commit Graph

22891 Commits

Author SHA1 Message Date
Florian Thoma
9a7c99fc4b FIX Take current request protocol into account when deleting session cookie 2021-08-06 10:55:05 +10:00
Michal Kleiner
f8a9431152 NEW Add extension point to Director::is_site_url 2021-08-06 12:54:18 +12:00
Steve Boyd
e0548b208e
Merge pull request #10044 from TheBnl/patch-1
Fix error when executing method SSViewer::templates() when $subTempla…
2021-08-06 09:49:00 +12:00
Steve Boyd
9b42624616
Merge pull request #9994 from GuySartorelli/patch-1
ENH Provide onBeforeRenderHolder extension hook in GridField.
2021-08-06 09:47:53 +12:00
Bram de Leeuw
ecb233012d
Fix error when executing method SSViewer::templates() when $subTemplates is still null
Without the fix this causes the framework to throw a 500 error:
`ERROR [Warning]: array_merge(): Expected parameter 2 to be an array, null given`

I noticed the error while doing a search with the `GridFieldAddExistingAutocompleter`. The error probably gets supressed on live environments.
2021-08-05 12:10:06 +02:00
Steve Boyd
715208539e
Merge pull request #9923 from danielpina/patch-1
DOC Update 01_ModelAdmin.md
2021-08-05 16:32:09 +12:00
Steve Boyd
80f97552e9
Merge pull request #9992 from Michael-HEIW/Silverstripe-lessons
DOC Update SilverStripe to Silverstripe
2021-08-05 15:48:13 +12:00
Steve Boyd
d120367b5a
Merge pull request #9999 from GuySartorelli/patch-2
ENH Use text field's title for validation messages.
2021-08-05 15:47:03 +12:00
Steve Boyd
6b514ebd0c
Merge pull request #10040 from GuySartorelli/patch-5
ENH: Avoid "new" keyword to instantiate CompositeValidator
2021-08-05 13:39:43 +12:00
Aaron Carlino
0c998fc5ce DOCS: Add Michal Kleiner as core committer 2021-08-04 22:32:25 +12:00
Steve Boyd
dc3b907f5f
Merge pull request #10029 from creative-commoners/pulls/4/titletip
NEW Title tips for form fields
2021-08-03 14:04:55 +12:00
GuySartorelli
cacd762357
Avoid "new" keyword to instantiate CompositeValidator
The CompositeValidator is Injectable, so we should allow project code to replace it here via the Injector.
2021-08-02 12:46:53 +12:00
Steve Boyd
a90d46dbc4 NEW Title tips for form fields 2021-07-31 14:45:24 +12:00
Dylan Wagstaff
ec6b010085
Merge pull request #10003 from Michael-HEIW/Silverstripe-dev-guides-part-3
DOC Update SilverStripe to Silverstripe CMS
2021-07-31 14:33:59 +12:00
Michael Pritchard
fdbd899766 DOC Update SilverStripe to Silverstripe CMS
- Remaining Developer Guides and Upgrading
- SilverStripe in a namespace or api has not been change
- To keep PRs easier no formatting was changed

Update merge conflics with two files

Update Silverstripe Ltd, Silverstripe Cloud and Silverstripe CMS

Silverstripe CMS Ltd > Silverstripe Ltd
Silverstripe CMS Platform > Silverstripe Cloud
Silverstripe CMS Framework > Silverstripe CMS

Resolve merge conflict

Remove Framework from Silverstripe CMS Framework

- 3 files

Change SilverStripe CMS to Silverstripe CMS
2021-07-30 13:54:15 +01:00
Daniel Hensby
0d909321b5
Merge pull request #10034 from vladimir-mencl-eresearch/patch-1
Fix link typo in 01_Caching.md
2021-07-27 21:51:12 +01:00
Vlad Mencl
e436e13dfc
Fix link typo in 01_Caching.md 2021-07-27 21:37:58 +12:00
Daniel Hensby
507c70e2f5
Merge pull request #10023 from xini/fix-destroy-session-on-logout 2021-07-20 09:13:20 +01:00
Florian Thoma
3e2ca3027b destroy session on logout instead of restarting it 2021-07-20 12:05:16 +10:00
GuySartorelli
4cd6b1434a
ENH Reduce duplication of code in GridField view and edit buttons. (#9953)
* ENH Reduce duplication of code in GridField view and edit buttons.

* Fix syntax error

Co-authored-by: Daniel Hensby <dhensby@users.noreply.github.com>

Co-authored-by: Daniel Hensby <dhensby@users.noreply.github.com>
2021-07-18 16:54:22 +01:00
Daniel Hensby
cc8287c99e
Merge pull request #10024 from sunnysideup/patch-16
DOCS better docblock for TinyMCEConfig::removeButtons
2021-07-18 11:30:43 +01:00
Nicolaas
c8c7ee4a08
DOCS better docblock for TinyMCEConfig::removeButtons 2021-07-18 11:30:29 +01:00
GuySartorelli
5699db306d
FIX: Remove limits in removeAll method.
Keeping a limit here results in a DatabaseException "This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'"
2021-07-12 17:14:46 +12:00
Andre Kiste
ae61be3a49
Merge pull request #10011 from creative-commoners/pulls/4/htmleditor-readonly-lazy-load
MNT Update unit test to expect loading attribute
2021-07-09 11:00:26 +12:00
Steve Boyd
436678209e
Merge pull request #9995 from creative-commoners/pulls/4/lazy-load-docs
Add docs for lazy loading
2021-07-09 10:59:52 +12:00
Steve Boyd
03b43227a5
Update 02_Images.md 2021-07-09 10:03:44 +12:00
Ingo Schommer
b2a85e7a02
FIX BASE_PATH fallback assumed wrong file location (#9977)
The file was moved back in 2017 with 3873e4ba00 (diff-8ce3f007bef0668c2c08320160362229abce9614025dc2a5b729d1b2b56ed3f7),
but the logic wasn't updated. That wasn't apparent since the fallback usually doesn't need to be triggered.
Whenever constants.php is included through the standard composer autoload, the debug_backtrace() logic took priority.

This is an important piece for using CoreKernel directly to boot Silverstripe,
which I'm currently attempting through a composer plugin (so a different autoloading path).
https://github.com/silverstripe/silverstripe-graphql-composer-plugin
2021-07-08 11:11:39 +12:00
Steve Boyd
f6e8d6e591 Merge branch '4.8' into 4 2021-07-07 14:03:02 +12:00
Steve Boyd
2e5908cf21
Merge pull request #10009 from creative-commoners/pulls/4.8/treedropdown-pdo
FIX Cast DBInt value to int
2021-07-07 12:21:50 +12:00
Steve Boyd
22f809840a MNT Update unit test to expect loading attribute 2021-07-06 17:27:54 +12:00
Steve Boyd
87d076faa6 FIX Cast DBInt value to int 2021-07-06 16:43:54 +12:00
Andre Kiste
8225b2e890
Update 02_Images.md 2021-07-02 11:34:18 +12:00
Ingo Schommer
e8c14a9d5b
Merge pull request #10005 from creative-commoners/pulls/4.8/10k
FIX Parse Enums with dots in their values
2021-07-02 09:33:29 +12:00
Steve Boyd
abf72c3aa8
Merge pull request #9998 from creative-commoners/pulls/4.8/duplicate-embeds
FIX Cache duplicate embeds separately
2021-07-01 16:55:55 +12:00
Steve Boyd
8e803bbcfc FIX Parse Enums with dots in their values 2021-07-01 16:00:08 +12:00
Aaron Carlino
29320841c9 DOCS: improve graphql inheritance docs 2021-06-30 19:38:11 +12:00
Aaron Carlino
0537e769fc DOCS: Fix line break 2021-06-30 19:11:46 +12:00
Aaron Carlino
f3e1cd4599
DOCS: new union and interface inheritance pattern (#9912)
* DOCS: new union and interface inheritance pattern

* Update docs for interface queries

* Remove config references in updateSchema
2021-06-30 19:05:18 +12:00
GuySartorelli
e4e4b0924d
ENH Use text field's title for validation messages.
Where a field has a title, this is preferred over the field name in validation messages, as that is the "name" of the field as presented to the user.
2021-06-29 17:45:01 +12:00
Steve Boyd
0b979dc345 FIX Cache duplicate embeds separately 2021-06-29 12:17:07 +12:00
André Kiste
b6d12bc144 Add docs for lazy loading 2021-06-29 11:45:06 +12:00
Guy Sartorelli
365998f445 ENH Add extension point for modifying readonly GridFields.
Developers may want to amend a gridfield (either by modifying its
components or amending the list) after it has been transformed to be
readonly.
One such modification may be replacing the GridFieldViewButton
with something else - because components are instantiated with the "new"
keyword this would be the only way to do that.
2021-06-29 11:23:58 +12:00
Guy Sartorelli
009a32fbec ENH Allow GridField readonly components to be globally modified. 2021-06-29 11:21:41 +12:00
Dylan Wagstaff
82e0d8f24b
Merge pull request #9988 from Michael-HEIW/Silverstripe-Getting-Started
DOC update SilverStripe to Silverstripe
2021-06-25 16:00:09 +12:00
GuySartorelli
d710990e13
ENH Provide onBeforeRenderHolder extension hook.
GridField has onBeforeRender in its Field method, but that hardly ever gets called.
This commit adds the onBeforeRenderHolder extension hook that is normally available via FormField::FieldHolder().
2021-06-25 13:21:49 +12:00
Michael Pritchard
b5a1024b13 DOC update SilverStripe to Silverstripe
- Only Lessons this PR
- Apply consistent formatting (120 chars etc)
2021-06-24 09:11:34 +01:00
Will Rossiter
21c27154dd
BUG subTemplates should be an array
See `SSViewer::templates()`and `SSViewer::setTemplateFile()` 

Methods assume this variable should be an array. If you call `setTemplateFile()` directly prior / instead of any `setTemplate` call then a PHP warning is generated `[Warning] array_merge(): Expected parameter 2 to be an array, null given`
2021-06-23 11:33:51 +12:00
Michael Pritchard
53ef257ff4 DOC update SilverStripe to Silverstripe
- Start with Getting Started
- Apply consistent formatting (120 chars etc)
2021-06-22 09:41:48 +01:00
Dylan Wagstaff
bcddf557e1
Merge pull request #9987 from RVXD/patch-1
Instructions Memcached change
2021-06-21 22:25:52 +12:00
Remy Vaartjes
62a74e97cc
Instructions Memcached change
Change memcached yml to After: '#versionedcache' since versionedcache is also using this. With after #corecache it won't have any effect.
2021-06-21 10:57:10 +02:00