291 Commits

Author SHA1 Message Date
Samuell
9b8974b003 Add validator for plugin navigation items (#4497)
This will detect invalid navigation item configuration in installed plugins. In debug mode, this will throw an error, otherwise, it will simply log the error.

Credit to @Samuell1. Fixes #4491.
2019-08-15 11:47:13 +08:00
Ben Thomson
a59d3b83eb Code quality clean up (#4449)
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Luke Towers
9fa7cbf70e Hide backend controller behavior public methods from controller actions.
Fixes #3762, replaces #3764
2019-04-19 14:01:01 -06:00
Samuel Georges
5190c8177b Avoid terminating the app using exit() or die()
Refs #3783
Refs #3746
2019-03-29 07:10:07 +11:00
Ben Thomson
8c1106f027 Allow list configs to add class to head row cell (#4207)
Credit to @bennothommo. Documented by https://github.com/octobercms/docs/pull/367
2019-03-25 13:37:32 -06:00
Ben Thomson
3363b219f6 Delay backend controller middleware until after request is processed (#4190)
Credit to @bennothommo. Fixes #4183.
2019-03-21 01:19:28 -06:00
Larry Barker
5c15687032 Support CMS module being present but disabled (#4202)
Credit to @LarBearrr
2019-03-19 16:31:14 -06:00
Luke Towers
f168c1a601 Fix support for main menu items having a numeric value for counter 2019-03-16 13:53:25 -06:00
Ben Thomson
a89f1f1c3a Add Closure use declaration (#4170) 2019-02-28 14:54:00 +02:00
Ben Thomson
57a074364e Allow controller middleware in backend controllers (#4106)
Credit to @bennothommo Related: https://github.com/octobercms/october/pull/4088
2019-02-27 14:27:41 -06:00
Luke Towers
b39eb03336 Defaulted the main menu counter to sum it's side menu counters 2019-02-21 11:55:43 -06:00
Luke Towers
d6f8cc179d Support abort(404) in the backend module 2019-02-21 10:44:58 -06:00
Luke Towers
bbf398133e Fix issues with AJAX handlers on dashboard widgets. Replaces #4132 2019-02-13 15:05:18 -06:00
Luke Towers
cb87802080 Added support for counter and counterLabel to main menu.
Refs: #16, Refs: 7bcec1bd99a813a2fda8dfdc9f25ce51ed663bf8, Replaces: #4061
2019-02-13 14:54:13 -06:00
Luke Towers
1fc8dc6fd4 Added ability to require permissions use ReportWidgets 2019-02-11 16:02:30 -06:00
Luke Towers
78e68ed632 Support nested jsonable values in List columns, refs: #2990, #2995, #3088, 2019-02-01 15:11:57 -06:00
Tobias Kündig
67ee2229a5 Added manual deleted_at checks (#4051)
Fixes #4046 

It is possible that the user model gets fetched using the SoftDelete
trait before the relevant migrations were applied during an update.
To fix this edge case the user model is always fetched using the
withTrashed scope and the deleted_at check is done manually afterwards.

@see https://github.com/octobercms/october/issues/3999
2019-01-18 14:42:25 -06:00
Luke Towers
d6e680799f Reduce reliance on CMS module from Backend module
added backend 404 view, fixed return to backend URL in the access denied view on backend only instances
2019-01-15 11:46:48 -06:00
Luke Towers
6c0a77c064 Fix broken tests 2019-01-10 20:49:15 -06:00
Luke Towers
1c0fd1b419 Yet another change to perfect the getParentForm() method 2019-01-10 18:59:29 -06:00
Luke Towers
39987677f0 Peer review of 1b3263d4c7004c7b036ab8ae8b8fee3cfb6928b5 2019-01-10 17:57:32 -06:00
Luke Towers
1b3263d4c7 Pass the containing Form widget to the FormFields that it generates.
This enables complex FormWidgets that need to know what Form widget they belong to to access that information with $this->formField->form; This also enables a fix for: https://github.com/rainlab/location-plugin/issues/48
2019-01-10 10:22:59 -06:00
Luke Towers
064daa2d2e Compiled assets, minor docblock update 2019-01-03 16:26:30 -06:00
fansaien
2dcd84c4f2 Fix the input trigger API where a form element doesn't exist (#4033)
There are no `form` elements in the preview context of a form, so this adds an alternative selector to use when no common `form` elements are found for the Input Trigger API to use. Credit to @fansaien
2019-01-03 16:24:43 -06:00
Denis Denisov
2b16bad0fe Ignore controllers of disabled plugins (#3923)
Fixes #3905. Credit to @w20k
2018-11-15 13:51:11 -06:00
Luke Towers
e726165554
Add Tab icons functionality (#3901)
Credit to @ayumihamsaki for the original proposal, @Teranode for the initial work. Related #3888, #3856.
2018-10-30 20:06:33 -06:00
Luke Towers
2c82b05062 Added backend.ajax.beforeRunHandler event 2018-10-14 10:32:47 -06:00
Alexander Shapoval
9da0af4533 Add ability to specify one CSS class to apply to all tab panels (#3761)
Credit to @ebashu-on-holidays
2018-09-16 10:51:00 -06:00
Szabó Gergő
69988837d5 Fixed readonly on switch and checkbox field types (#3750)
Credit to @gergo85
2018-09-03 14:36:22 -06:00
Nathan van der Werf
0f0d108da0
Remove unused imports 2018-08-24 19:51:59 +02:00
Nathan van der Werf
8b6f11e6ac Extract child instructions 2018-08-15 19:25:42 +02:00
Nathan van der Werf
62c59a4903 Refactor ternary operators to null coalescing operators 2018-08-15 19:15:13 +02:00
Nathan van der Werf
a3d7a028b4 Replace is_null with "=== null" comparison 2018-08-15 18:54:46 +02:00
Nathan van der Werf
123145fd54 Remove unnecessary parentheses 2018-08-15 18:49:52 +02:00
Nathan van der Werf
3a918ad200 Remove "null" assignments 2018-08-15 18:33:24 +02:00
Samuel Georges
fb2aa1730c Fixes security issue
Refs #3604
2018-06-22 22:57:38 +10:00
Luke Towers
08d8b33fc6 Whitespace 2018-04-19 10:21:25 -06:00
Tobias Kündig
2b22b26676 Added align property to list columns definition (#3509)
Documented in https://github.com/octobercms/docs/pull/289; credit to @tobias-kuendig
2018-04-17 23:34:08 -06:00
Luke Towers
8df92f4ba1 Merge branch 'develop' of https://github.com/octobercms/october into develop 2018-04-05 22:10:59 -06:00
Luke Towers
5cbadd447a Fix typo in 97e156d43d 2018-04-05 22:10:43 -06:00
Samuel Georges
2164c07616 Preserve multi field types with trigger use
Refs #3195
Refs #2861
Refs https://github.com/daftspunk/oc-test-plugin/pull/41
2018-04-06 10:58:56 +10:00
Samuel Georges
97e156d43d Tidy up logic from #3465, move helper functions out 2018-04-04 14:35:29 +10:00
MartynasJanu
13dadaa667 Set trigger targets arbitrary levels above current form context (#3465)
Fixes #3260. Enables setting the target field for the trigger API to a form context an arbitrary number of levels above the current field by prepending the field name with `^` for each level to go up. For instance, if you had a field [allow_pictures] in the base form and a [records] repeater with [image] fields, and you set the target field for the trigger on [image] to [^allow_pictures] then it would work properly instead of looking for an [allow_pictures] field on the [records] field. Credit to @MartynasJanu. Documented in edc78b584b
2018-03-21 23:25:18 -06:00
Luke Towers
15314bbe94 Updating base widget inline documentation 2017-11-22 14:10:04 -06:00
Samuel Georges
e6de2a5521 Fixes exception on empty token 2017-11-02 19:53:20 +11:00
Luke Towers
c7a3354dfd
Move backend.page.beforeDisplay after auth check
Fixes #3215. Related: 47cd204686 (diff-6cdbb280344f40eebe758cf8e8e5f7d9)
2017-10-31 08:45:11 -06:00
Luke Towers
aee81081df Hide Settings menu when no sub pages to display (#3172)
Remove the Settings main menu item if there are no submenus to display. Fixes https://github.com/octobercms/october/issues/2175
2017-10-18 11:22:33 -06:00
Luke Towers
4203e65549 Deprecated Cms\Controllers\Media in favour of the backend one. Fixed other references to moved pieces of the Media Manager. Finally a proper fix for https://github.com/octobercms/october/pull/2604 2017-10-08 23:12:04 -06:00
Samuel Georges
cd76f2e04f Field definition should override magic 2017-09-13 14:29:42 +10:00
Oleg Samorai
2cc492f7dc Enable displaying jsonable properties in backend lists (#2995) 2017-07-29 14:24:54 -06:00