- If no bootstrap is provided in "phpunit.xml", the standard Winter CMS bootstrap is used.
- If a custom bootstrap is provided by the "-b" option, it will be used.
- Finally, the bootstrap specified in "phpunit.xml" will be used.
- Added the ability for relative and absolute paths to be used in "phpunit.xml" for the bootstrap path.
Fixes#680. Originally meant to support the default length of a VARCHAR column in MySQL it has since been rendered more unhelpful than helpful given that the default length is not always 255 and the silent failure mode when copying and pasting content into the field is a detriment to user experience.
This adds support for applying conditions to a relation column. Given the following structure:
Entries:
- id
- created_at
EntryData:
- entry_id
- key
- value
You can display the individual EntryData records as separate columns in the list widget by using the following configuration:
```yaml
id:
label: ID
created_at:
label: Created at
_entry_field_email:
label: Email
relation: entry_data
conditions: "`key` = 'email'"
select: value
```
Fixes the following error when previewing a column on Import:
"Call to undefined method League\Csv\Reader::setOffset()"
on line 253 of modules/backend/behaviors/ImportExportController.php
Credit to @alxy
ref. octobercms/october#5629
The fixes in 9637b67c23 stopped overridden POST values from working, as these were interpreted as arrayed values. This makes the checkbox and switch inputs stop working, as these have a default "unchecked" value which is then overridden by the "checked" value when checked.
This will enable the ability to override data attribute config values on the JavaScript side.
This can be useful for per-instance overrides derived from other frontend code, and saves developers having to override data attributes using JavaScript.
- The Snowboard and PluginLoader objects are now frozen and cannot be modified.
- Added a Proxy in front of Snowboard to handle plugin loading
- Plugin "Snowboard" instances are blocked from running certain methods
- Update tests to check hardening
Fixes an issue where the imageWidth constraints were smaller than the field itself which would cause the entire field to shrink in size instead of just the image itself. Fixes#684
As per documenation, key names must start with a # or .
However there was no validation to this, which in turns translating to elements unexpectedly being replaced by random keys. One such example is title replacing the page <title>. You could test for example with a div key and see everything fall on itself :)
The way this was discovered was by using the Crop and Insert functionality which upon inserting the image replaces the page title with the name of the file inserted.
The PR is making changes to 2 systems, the old one which is used by the above and also the Snowboard system which I have learnt to be the new way.
- Deprecate "runPluginRefreshCommand" method and replace with "instantiatePlugin", to better describe the functionality within.
- Use namespace to guess plugin being detected, falling back to path if there is no namespace given - this fixes testing for symlinked plugins.
- Add type hints and return types for most methods
Very useful for projects using mix for their own plugins that would like to avoid running any mix packages provided by either the Winter core or other plugins that the project owner doesn't control.
Includes handling of Windows interrupt/break signals in Powershell to correctly cleanup when terminating the Mix commands early.
Co-authored-by: Ben Thomson <git@alfreido.com>