Commit Graph

4780 Commits

Author SHA1 Message Date
Ben Thomson c25e41d51a
Remove unneeded use case 2020-08-17 10:32:52 +08:00
Luke Towers f29562023d Disable HTML5 form validation on backend Settings pages
Fixes #5239.
2020-08-15 20:59:53 -06:00
Luke Towers f346312266 Minor improvements 2020-08-15 00:55:17 -06:00
Luke Towers 7fde924ec1 Finish implementing october:util purge uploads command.
Only works for uploads stored on the local disk right now, support for remote disks may be added in the future at some point.

Replaces #4518 & #4029. Credit to @LukeTowers, @BennoThommo, & @austinderrick.
2020-08-15 00:33:08 -06:00
Luke Towers 75e6633926 Merge branch 'wip/image-resizing' of github.com:octobercms/october into wip/image-resizing 2020-08-14 15:39:48 -06:00
Luke Towers 288918a7d7 Finished initial implementation of resizer for all supported input image sources, added the storage/app/resized directory to the mirror command 2020-08-14 15:39:30 -06:00
Ben Thomson 064fc1fe36
Merge branch 'develop' into wip/image-resizing 2020-08-14 15:14:48 +08:00
Luke Towers 2351f2104d Implemented resizing logic for File models, fixed bugs 2020-08-13 20:58:48 -06:00
Ben Thomson c7ed0ffa1a
Implement improved testing procedure (#5238)
Refs: 5feb7b872f
2020-08-14 08:00:39 +08:00
Luke Towers 04de6ef0e2 Play nicer with tests 2020-08-13 03:15:53 -06:00
Luke Towers f54b167f00 Merge branch 'develop' into wip/image-resizing 2020-08-13 03:11:20 -06:00
Luke Towers 17664dce6c Reorganized the ImageResizer class 2020-08-13 03:10:30 -06:00
Luke Towers 9cb8a0861b Finished implementing support for retrieving thumb URLs from FileModels, initial support for detecting completed resize operations 2020-08-13 03:02:06 -06:00
Ben Thomson 3a1f547adb
Use new PathResolver methods for handling file Asset / Object paths 2020-08-13 12:48:07 +08:00
moisessepulveda cdb8acd214
Improvements to Spanish translations (#5237) 2020-08-13 12:03:35 +08:00
Ben Thomson 8bc440defa
Revert "Change File model to use fillable as opposed to guardable attributes"
This reverts commit abfe156d8d.
2020-08-10 09:17:32 +08:00
Ben Thomson abfe156d8d
Change File model to use fillable as opposed to guardable attributes 2020-08-10 09:07:24 +08:00
Luke Towers b4dd25534e Merge branch 'develop' into wip/image-resizing 2020-08-09 04:26:48 -06:00
Luke Towers a992fb44bc Support the resized URL as a route param instead of GET variable, initial WIP on supporting File models 2020-08-09 03:07:07 -06:00
Luke Towers 6926908dad required code from last commit 2020-08-08 20:18:11 -06:00
Luke Towers 263ae871b7 More WIP on image resizer
Refactored resizer URLs to support custom disks, switched to using a signed version of the resized image's URL as the identifier for the configuration
2020-08-08 20:17:35 -06:00
Luke Towers 7b9408e394 More WIP, moved logic in the appropriate locations 2020-08-07 23:27:32 -06:00
Ben Thomson 50e61df10e
Fix path validation for CmsObjects & Assets (#5229)
Instead of using a temporary file to allow checks with `realpath()` to succeed, use the new `resolve_path()` helper added in a9a629b012 to replace the `realpath()` usage and allow for path resolution of files that don't exist yet.

This will allow new asset files to still be saved correctly, whilst still preventing paths outside of the assets directory to be used.

Replaces b1954e9258.
2020-08-05 12:00:22 -06:00
Luke Towers 0a9c751e1b Merge branch 'develop' into wip/laravel-6 2020-08-03 01:49:06 -06:00
Ben Thomson df2b8b5817
Recompile Storm UI JS asset 2020-08-03 11:07:55 +08:00
Luke Towers 18af35d928 Prevent error from occurring when the active sorting column is hidden from the results.
Fixes #5227
2020-07-30 10:54:09 -06:00
Luke Towers b1954e9258 Fix creating asset files
Fixes #5228
2020-07-30 10:35:02 -06:00
Ben Thomson 7f7bc04288
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-07-26 15:02:08 +08:00
Ben Thomson d49266ad90
Make popup textarea HTML5-compliant in Inspector editor.
Previously, this was a self-closing tag with a value attribute. Neither are supported for the textarea tag in HTML5. It appears that browsers now are actually checking this and/or won't work with it.

Fixes #5222.
2020-07-25 22:52:23 +08:00
Ben Thomson 0dee0e54b1
Alias Illuminate\Support\Debug\HtmlDumper to Symfony's HtmlDumper 2020-07-20 10:40:50 +08:00
Luke Towers 6ea06b3d8e restore original password min length value 2020-07-19 02:07:09 -06:00
Luke Towers 18714ae9f0 Add L6 as a dep to the modules to prevent people with older Laravel versions from accidentally pulling in the L6 update 2020-07-19 01:42:58 -06:00
Luke Towers 1aab58d1e4 Merge branch 'develop' into wip/laravel-6 2020-07-19 01:35:37 -06:00
Luke Towers a56e0cdf61 Use Arabic numerals instead of Indic ones for Arabic date translations.
Fixes #5213
2020-07-19 01:15:07 -06:00
Luke Towers c1fd1b9346 Fix support for ignoreTimezone in date filter types
Fixes #5197
2020-07-19 01:01:09 -06:00
Klaas Poortinga 517c588ef7
Fix filter type "group" when 500+ options are available (#5141)
When 500 options or more are presented in a group filter, PHP `max_input_vars` limits may prevent the filter from working. This fix passes selected options through as a JSON string to get around the limits.
2020-07-17 17:12:41 +08:00
Luke Towers d17b6eaf32 Merge branch 'develop' into wip/laravel-6 2020-07-17 00:47:32 -06:00
Ben Thomson 70eac9b0e2
Recompile assets 2020-07-16 18:00:19 +08:00
Patrick Boivin 987dfa4eb7
Add Paragraph Formats to Editor Settings (#4861)
Co-authored-by: Luke Towers <github@luketowers.ca>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
2020-07-16 17:54:21 +08:00
Ruben van Erk 3be6e26e84
Clear input after creating tag (#5053)
When using the taglist field type, the input isn't cleared after a tag has been created. This problem is described here: https://github.com/select2/select2/issues/4698
This change fixes that issue.
2020-07-16 17:26:49 +08:00
Romain 'Maz' BILLOIR 745bdf9022
Add missing French translations (#5210) 2020-07-16 16:42:28 +08:00
Ben Thomson 8fd1ddf7aa
Provide an accessor for the form widget of the Settings controller (#5212)
Co-authored-by: Luke Towers <github@luketowers.ca>
2020-07-15 14:04:01 +08:00
Ben Thomson 327d7be604
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-07-10 16:02:01 +08:00
Ben Thomson bb3d018590
Add fallback alias for Illuminate\Support\Facades\Input
This will redirect any instances of the now-removed Input facade from Laravel to the Rain library's Input facade.
2020-07-10 15:56:11 +08:00
Luke Towers c1bb695f4b
Fix "use statement with non-compound names has no effect" (#5206)
Fixes #5205.
2020-07-09 02:19:36 -06:00
Ben Thomson 4950edc196
Add sensitive field input (#5201)
A field widget that allows for entering of sensitive information that can be revealed at the user's request - ie. API keys, secrets.

When a sensitive field that has been previously populated is loaded again, a placeholder is used instead of the real value, until the user opts to reveal the value. The real value is loaded via AJAX.

Credit to @tomaszstrojny for the original implementation.

Replaces #5062. Fixes #5061, #1850, perhaps #1061.

Co-authored-by: Tomasz Strojny <tomasz@init.biz>
Co-authored-by: Luke Towers <github@luketowers.ca>
2020-07-08 16:26:38 +08:00
Ben Thomson 9412a2bb20
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-07-01 10:42:33 +08:00
Meysam 9082a231a6
Document Select2's dynamic option creation (#5052) 2020-07-01 10:11:16 +08:00
Luke Towers dea03a698c Use the Lang facade rather than the trans helper function 2020-06-28 11:14:35 -06:00
Luke Towers c84c51c820 Improve error message when attempting to fork an unforkable component.
Fixes #5142 and rainlab/forum-plugin#141
2020-06-28 10:57:47 -06:00
Luke Towers dd8ceaa106 Merge branch 'develop' into wip/laravel-6 2020-06-27 20:06:39 -06:00
Luke Towers b2d88d6da9 Fix issue when refreshing an entire form that occurs because the toggleEmptyTabs timer runs after the elements it was based on have all been replaced. 2020-06-24 11:33:44 -06:00
Ben Thomson 47ca69e1f4
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-06-23 11:01:21 +08:00
Giuseppe Montuoro cbbc82ac86
Use the current context when making redirects in FormController onSave handlers (#5132)
Related: d0546599d1
2020-06-20 16:04:57 -06:00
Luke Towers ef36399cf7 Improve error handling for invalid counter properties on backend menu items 2020-06-19 23:54:44 -06:00
Luke Towers 1b8fae0ef0 Fix visual glitch on inspector autocomplete fields.
Fixes #5085
2020-06-18 11:55:14 -06:00
Luke Towers dc400a0e20 Fix issue where the throttle feature was no longer logging IP addresses.
Fixes #5128
2020-06-18 11:27:53 -06:00
Luke Towers b384954a29 Improve Froala sanitization of pasted content. 2020-06-18 11:03:48 -06:00
Luke Towers 9c6c6b5a12 Merge branch 'develop' into wip/laravel-6 2020-06-17 03:37:55 -06:00
Luke Towers 0cdda52eb8 Fix bug where a field with `@context` in the name would completely break forms if it also depended on other fields.
The bug occurred because if specific fields aren't detected in onRefresh(), the entire Form widget HTML will be returned as the result instead of specific fields. This created a problem because the october.form.js JS is not setup to gracefully handle having the entire root form DOM node completely replaced in the middle of a request being completed. Specifically, this would cause problems when trying to detect empty tabs, and then the problems would cascade from there as there would be an instance of october.form.js attached to the page with broken references to no-longer existing DOM nodes.

This fix solves the immediate issue of `field@context` using the `dependsOn` feature breaking by ensuring that the actual final field name for a given field is used instead of the name used in the configuration of the field. Future work should probably be done to better support an entire form being re-rendered if no fields are detected in onRefresh however.
2020-06-17 03:05:40 -06:00
Tomasz Strojny 68d0667bd4
Updated Polish translation (#5129) 2020-06-17 16:10:37 +08:00
Romain 'Maz' BILLOIR 81a11f70c4
Fix Froala strip empty tags issue (#5126)
Co-authored-by: Ben Thomson <git@alfreido.com>
2020-06-16 14:59:40 +08:00
Luke Towers 24f87ae10e Also remove custom sorts from relationcontroller lists / pivot manage modes.
Fixes https://github.com/octobercms/october/issues/4335#issuecomment-643706004, refs: 5f8a5454ee
2020-06-14 14:29:21 -06:00
Luke Towers ad69711634 Merge branch 'develop' into wip/laravel-6 2020-06-11 10:38:29 -06:00
Ben Thomson 8dba43ba0b
Allow plugin autoloaders to load on restricted pages and actions (#5120)
Allow plugin autoloaders to load, even on restricted pages. This allows (enabled) plugins to load their autoloaders on any pages, allowing includes in migration files to run.

Fixes #5110.
2020-06-09 21:46:17 -06:00
Luke Towers c03fd66aeb Support new onUpload() AJAX handler for uploads instead of postback takeovers.
Fixes #5104. Refs: 4f7e2995c7
2020-06-05 16:01:22 -06:00
Luke Towers 02af8bb254 Improve error handling when uploading a file that exceeds the server's post_max_size 2020-06-05 15:56:15 -06:00
Luke Towers 314b15dd13 Support decompiling mediamanager assets 2020-06-05 15:52:59 -06:00
Luke Towers 434f2cd433 Improve error handling for UploadableWidgets 2020-06-05 15:52:27 -06:00
Luke Towers 547d9bffeb Support nested asset files and files under a symlinked directory when decompiling backend assets 2020-06-05 15:51:12 -06:00
Luke Towers 33795fe6aa Delete unnecessary file 2020-06-04 09:19:24 -06:00
Alexander Guth 9e64e63805
Add filters widget to the pivot view (#5099)
Fixes #5089
2020-06-02 00:53:57 -06:00
Samuell b63a39b106
Add missing import (#5101) 2020-06-01 10:42:15 -06:00
Luke Towers 5c3ba9a28a Fix naming conflict
Reported by @alxy https://github.com/octobercms/october/pull/5088#issuecomment-636448210
2020-05-31 11:23:31 -06:00
Luke Towers 5c7ba9fbe9 Update combined jquery file to 3.4.0, added fix for #5097 2020-05-31 02:32:58 -06:00
Luke Towers 252c9b7f58 Merge branch 'develop' into wip/laravel-6 2020-05-27 12:44:54 -06:00
Ben Thomson a43833d511
Trigger dependency check for remote values for inspector dropdown properties (#5071) 2020-05-27 09:36:21 +08:00
Marco Grüter b417a4938f
Render the css classes on the filter widget (#5067) 2020-05-26 15:25:06 -06:00
Nick Khaetsky ce7335f6cb
Add warning with missing dependencies on Updates page (#5077)
Fixes #4843.
2020-05-26 10:05:40 -06:00
Alwin Drenth 8196b8169e
Improved Dutch translations (#5091) 2020-05-26 09:59:11 -06:00
Dieter Holvoet 40d8bb453e
Get file and folder metadata for media items using a single network call if possible (#5046)
Co-Authored-By: Ben Thomson <ben@abweb.com.au>. Fixes #5045.
2020-05-26 03:20:41 -06:00
Luke Towers 71d579b947 Update language string 2020-05-25 18:11:05 -06:00
Luke Towers 9ecfb4867b Add new backend.allow_unsafe_markdown permission 2020-05-25 18:02:20 -06:00
Luke Towers 655c8011b9
Fix client side validation (#5088)
* Add data-request-validate to core save buttons

* Check if client side validation is desired before running it

Fixes #5076.
2020-05-25 12:53:48 -06:00
Luke Towers 62a4354b6f Merge branch 'develop' into wip/laravel-6 2020-05-22 21:04:15 -06:00
Luke Towers 0c46209725 Fix crash when a cached path doesn't actually exist in the specified datasource
Fixes an issue when using databaseTemplates where if the pathCache had been generated, and then any template was removed from the database manually the pathCache being out of date would cause an exception to be thrown elsewhere.
2020-05-22 21:01:45 -06:00
Luke Towers 908d2f91c4 Merge branch 'develop' into wip/laravel-6 2020-05-21 09:47:38 -06:00
Nick Khaetsky 7af73a0ade
Add "Install themes" button on updates page (#5075)
Very often in our community people asking question:"How do i install theme from marketplace?" 
And to answer that question we should say "Just press Install plugins button!"
That's not very intuitive for beginners. This PR adds one button that leads right to themes installation page.
2020-05-19 11:16:49 -06:00
Ben Thomson cf12edb861
Use IE11-compatible code for worker deregistration. (#5079)
Fixes #5078.
2020-05-19 18:59:03 +08:00
Ben Thomson c3a5780d37
Update providers and alias to use October Validator service 2020-05-19 12:47:49 +08:00
Ben Thomson 5c8f567323
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-05-18 08:35:03 +08:00
Mantas Šimkūnas a5ccfb2f99
Documented indeterminate checkboxes (#5068) 2020-05-12 11:30:03 -06:00
Marc Jauvin 15e4e53901
fix typos in halcyon (#5066) 2020-05-05 11:12:45 -06:00
Flynsarmy b896924dec
Only prepare the filter widget if there are scopes to prepare (#5064)
Fixes #5063. Collaborative effort between @LukeTowers & @Flynsarmy
2020-05-05 00:07:08 -06:00
Luke Towers e78d5fe2bf Merge branch 'develop' into wip/laravel-6
# Conflicts:
#	modules/system/classes/UpdateManager.php
#	modules/system/classes/VersionManager.php
2020-04-29 16:58:58 -06:00
Luke Towers fc8e258c6d set attributes and save instead of creating via mass assignment to play nicer with various features and avoid requiring fillable properties to be set 2020-04-29 16:48:46 -06:00
Marc Jauvin 29740ea1e8
add input tag id to css selector so it does not get overriden by a more generic css rule (#5057)
Improves on fix to #5054
2020-04-29 15:50:12 -06:00
Luke Towers 35ecf7019d Fix visual bug with remember checkbox on mobile.
Fixes #5054
2020-04-28 09:56:02 -06:00
Tobias Kündig dc72cafcd1
Don't persist failed search terms (#5039)
If a column is defined as searchable, that is not actually searchable (like a partial) and a user filters a list using the searchbox, an Exception is thrown.

Unfortunately, this errorenous search term has already been persisted to the session so on subsequent page loads, the user is presented with an Exception with no way to resolve it themselves.

This PR catches any exception that happens during the search and resets any persisted search terms so that the user can continue working after a page load.

The exception itself will still be thrown.

To reproduce the issue this PR solves:

Set a partial column in any list as searchable: true
Submit a search query
Hit F5
2020-04-27 01:55:40 -06:00
Web-VPF a2b835864e
Updated Russian translation (#5048) 2020-04-21 14:50:50 -06:00
Calum 1c621ae4c9
Support git submodules in october:util git pull (#5047) 2020-04-19 19:56:19 -06:00
Aurélien Roy 6097566c52
Allow blob files naming in AJAX request (#5042) 2020-04-18 20:43:47 -06:00
Ben Thomson 28e8758648
Further compat fixes 2020-04-17 11:45:48 +08:00
Ben Thomson 3720af4c02
Make ImportModel compatible with League/CSV v9 2020-04-17 11:37:30 +08:00
Đorđe Jocić d029d6ea24
Added Serbian translation (#5040) 2020-04-14 21:58:47 -06:00
Ben Thomson 965732bd45
Allow sidePanel to be used independent of sideNav
Also, updated compiled assets
2020-04-15 00:16:29 +08:00
4NIK3T baca3c8adf
Allow translations of default column values (#5038)
Currently the default column values cannot be translated. This change will allow us to translate them.
2020-04-12 11:17:45 -06:00
Kallef Alexandre b4c65e9feb
Added plugin:rollback command (#4389) 2020-04-11 09:46:22 -06:00
Mike Robinson d69ade86d1
Validate backend forms client-side (#4804)
Fixes #4799.
2020-04-09 14:24:51 -06:00
Ben Thomson 460aca5b01
Reset outline to default - roll back #4895 (#5035)
Replaces #4965. Rolls back #4895. Fixes #4964. Partially fixes #4819.

The previous attempts to add a stylised "focus" ring, while with the best intentions, did not take into account how "outline" normally works for people using visual aids. Most high contrast software will effect the outline if its available (ie. make it bolder or more prevalant), thus the "outline" property is paramount to maintaining accessibility.

The previous changes also present issues with elements using box-shadows already, and again, on high contrast, box-shadows are no longer rendered.

This change will bring back the outline property for focus, but with an addition to allow a blue highlight for Firefox, would should keep it in "parity" with WebKit.

Refs:
- https://a11yproject.com/posts/never-remove-css-outlines/
-  http://www.outlinenone.com
- https://stackoverflow.com/questions/52589391/css-box-shadow-vs-outline
2020-04-09 11:50:00 -06:00
Luke Towers 6a6331ba15 Merge branch 'develop' into wip/laravel-6 2020-04-08 12:40:02 -06:00
Ashleigh Sims 439ed2cc33
Unsuspend a backend user from user update screen (#5032) 2020-04-07 13:22:41 -06:00
Ben Thomson 9155e7de7e
Properly scope the search query in filter widgets.
The search input in filters used a local data request to filter options. While this worked fine for most cases, it failed inside modal relations as the relation keys were not being pushed through due to the request not being linked to the relation modal.

This refactors the request to run through the relation modal, emulating the functionality of "data-track-input" to debounce text entry.

Fixes https://github.com/octobercms/october/issues/4775
2020-04-06 15:45:22 +08:00
Ben Thomson b5d5e8c20d
Update dashboard column count in lang strings (now 12 columns) 2020-04-05 22:47:36 +08:00
Blaž Oražem 758d8e01e3
Slovenian language update (#5028) 2020-04-05 22:46:24 +08:00
Luke Towers 9574e2dba9 Merge branch 'develop' into wip/laravel-6 2020-04-04 23:16:56 -06:00
Luke Towers 4b4a9af266 satisfy the code sniffer 2020-04-04 22:26:52 -06:00
Luke Towers 5d4f3dd90a Support ignoreTimezone on `type: date` filter scopes too 2020-04-04 22:16:32 -06:00
Larry Barker 56e2805f15
Add option to ignore timestamps for date range filters (#4966) 2020-04-04 22:12:32 -06:00
Luke Towers c7c94347f2 Compile assets 2020-04-04 22:02:18 -06:00
Rike-cz b445b65150
Add support for linkable form tabs (#4754) 2020-04-04 21:56:48 -06:00
Luke Towers 3ca80f70f1 Merge branch 'develop' into wip/laravel-6 2020-04-04 21:41:36 -06:00
Luke Towers ed2d63dd0e add missing break statements 2020-04-04 21:41:24 -06:00
Luke Towers c2544d40b4 Fixed bug from relation controller customization improvements PR 2020-04-04 21:24:53 -06:00
Luke Towers 4b22d06c60 Merge branch 'develop' into wip/laravel-6 2020-04-04 14:11:05 -06:00
Szabó Gergő b8a6571c1c
Improved Hungarian translation (#5027) 2020-04-04 14:05:01 -06:00
Ben Thomson cc1c1096b0
Remove newline between "throws" and "return" 2020-04-05 01:06:47 +08:00
Dan Harrin 903b5b01ea
Add support for "soft" components (#4539) 2020-04-05 01:02:43 +08:00
Ben Thomson c7ba577fae
Use root namespace for Exception in catch block 2020-04-05 00:55:35 +08:00
Luke Towers 44cc5d371b Merge branch 'develop' into wip/laravel-6 2020-04-04 02:32:16 -06:00
Luke Towers 4f7e2995c7
Simplify Media Library upload logic (#5026)
Based heavily off the work done by @alxy in #4314

May require https://github.com/rainlab/pages-plugin/pull/421 if testing with RainLab.Pages.

Replaces #4314, related: #4311, Credit to @alxy for the initial work.
2020-04-04 02:11:28 -06:00
Luke Towers 459677a168 Code cleanup left over from #4311 2020-04-04 00:44:44 -06:00
Luke Towers 0edde0eb94 Improve opcache config check 2020-04-03 09:08:22 -06:00
Tobias Kündig 86197f59cb
Add Preset buttons for editor toolbar settings (#4700)
Fixes #4187.
2020-04-03 08:47:20 -06:00
Luke Towers 8b9c001b9a Allow disabled plugin's translations to load for display translations on system pages 2020-04-02 22:15:30 -06:00
Luke Towers d9a7942058 Fixed issue where Froala toolbar popups appearing outside of the editor would not display.
Code was left over from when redactor was still the main editor.
2020-04-02 11:38:45 -06:00
LeMaX10 ea42de9181
Use plugin & theme path helpers in the update manager (#4770) 2020-04-02 10:52:23 -06:00
Tobias Kündig 32443135c9
Remove JS layout calculations of the backend navbar by using flexbox (#4811) 2020-04-02 10:47:24 -06:00
Luke Towers ccb2c372bb Only force absolute URLs for media items if cms.linkPolicy = force
This fixes #4082 & rainlab/pages-plugin#405. Reverts a previous breaking change from Build 444 (introduced in #3536) by limiting the scope to which it applies.
2020-04-02 10:18:23 -06:00
yfktn 158fc43f62
Trigger change events when RelationController pivot records are created or updated (#4997)
Fixes #4996. When any pivot value change or add with relationManager, the filterFields will triggered too.
2020-04-02 09:33:41 -06:00
Marc Jauvin b1d41caf03
Improve PluginManager code (#5023) 2020-04-02 09:30:15 -06:00
Marc Jauvin 600fbd7cfa
Improve code readability for exists method (#5022) 2020-04-02 08:33:58 -06:00
Luke Towers 61b4ef6a47 Minor cleanups to the PluginManager.
Cleans up docblocks and makes most helper methods more permissive of incorrectly cased plugin identifiers. Replaces #4838 & #4837. Credit to @mjuavin for the case insensitivity fixes.
2020-04-01 21:30:54 -06:00
Luke Towers e4571c3dd4
Add usingSource method to active datasource (#5017)
This allows the `theme:sync` command to properly sync to specified targets.

Fixes #4887. Replaces #4935. Credit to @bennothommo for the initial implementation.
2020-04-01 18:12:50 +08:00
Romain 'Maz' BILLOIR 2b22c0e49a
Allows model scope with join (#4970)
More info in [this forum post](https://octobercms.com/forum/post/displays-a-related-model-with-scope-which-uses-join-doesnt-work-is-that-an-october-issue)
2020-03-31 16:45:19 -06:00
Tobias Kündig 6e25c5a8d0
Fix saving of translations in relation controller by re-using the form widget's model (#4822)
This PR is an addition to https://github.com/octobercms/october/pull/4193

Re-using the pivotWidget's and manageWidget's models for saving form data fixes https://github.com/rainlab/translate-plugin/issues/209, where translations are not saved for the model when editing it in a relation widget.

I did some manual testing with this change and everything was working as expected: Translations are now properly saved when creating or editing related models with pivot data. Creating related models in `single` mode now works as well.

Credits to @alxy for his previous work on this issue!
2020-03-31 11:44:13 -06:00
Luke Towers 8c7d50a638 Remove leftover code 2020-03-31 10:09:11 -06:00
Luke Towers 832809841f Switch to using league/csv >= 9.1 2020-03-31 09:57:36 -06:00
Luke Towers ff02e59740 Merge branch 'develop' into wip/laravel-6 2020-03-31 09:54:00 -06:00
Luke Towers 802d8c8e09 Temporary workaround until the L6 upgrade can be merged in to use league/csv >= 9.1 2020-03-31 09:53:35 -06:00