3744 Commits

Author SHA1 Message Date
tim0991
0783126249 Better check for default deletion redirect (#3324)
Adds a better check for the default redirect option.
2018-01-01 19:39:25 -06:00
pikanji
54ab6f080a Use cms.storage.uploads.disk instead of filesystem.default
Fixes #3332.
FileUpload widget uploads file to the disk specified by default in config/filesystem.php instead of storage.uploads.disk in config/cms.php, if we use System\Models\File following the instruction in here.
Although we can still create another class extending System\Models\File or October\Rain\Database\Attach\File and use it as the model for attachOne/Many relation, System\Models\File seems to be the one that responsible to look at storage.uploads.disk in config/cms.php, because the existing methods are using storage.uploads.*.
Credit to @pikanji
2018-01-01 17:04:47 -06:00
Alexander Guth
1389f77390 Fix 'illegal string offset' warning (#3331)
Credit to @alxy 
In case a new administrator is created by a non-superuser and no permission is set directly on creation, `permissions` is not initialized correctly. Thus, when the non-superuser tries to acceess `$this->model->permissions` it is not populated with an empty array as expected.

I have actually no clue why it does work for superusers however, as they should certainly experience the same issue, but this is not the case.
2017-12-31 11:03:07 -06:00
Luke Towers
69e56b0b5b
Fixes #3315
Fixes #3315 by moving the manipulation of the filter widget scopes to the controller event method instead of before any part of the controller constructor method is run.
2017-12-28 13:21:00 -06:00
viamage
7ffb79a5fd Fix typo (#3326)
Fixed typo, added CmsCompoundObject::getComponentProperties method test. Credit to @viamage
2017-12-27 13:31:34 -06:00
tim0991
06780f5123 Support toggling the removal of stop words in input preset handling (#3320)
Add `data-input-preset-remove-stop-words="false"` to an element being handled with the input preset JS to disable the removal of stop words from slug generation. Credit to @tim0991.
2017-12-25 17:56:58 -06:00
Jim Cottrell
0d0be9d0e5 Trigger fileupload form field change on file removal (#3319)
Credit to @jimcottrell
2017-12-22 15:33:21 -06:00
Miro Rauhala
d54c3b18e9 Initialize missing variable (#3318)
Fixes #3317. Credit to @mirorauhala
2017-12-21 16:06:56 -06:00
Miro Rauhala
1d3828c36e Bring Finnish language up to date (#3316)
Credit to @mirorauhala
2017-12-21 11:16:01 -06:00
Samuel Georges
33d492fda7
Merge pull request #3280 from aspendigital/settings-queue-restart
Trigger queue worker restart on settings model save
2017-12-19 09:12:12 +11:00
Luke Towers
587d0d1993
Typo fix 2017-12-12 10:41:12 -06:00
Luke Towers
d0546599d1
Allow overriding form config in arbitrary contexts
This enables arbitrary form contexts to be defined to override the default values when using a form with custom contexts. I.e. `$this->update($id, 'mycustomcontext');` will load the form definition from `mycustomcontext[form]` instead of `update[form]`
2017-12-12 10:39:03 -06:00
HekmatFavid
a2789e6f60 Update client.php (#3292)
Changes to hijri calendar month and date names correction in fa language
2017-12-11 08:54:43 -06:00
Samuel Georges
b9581332aa Save relations first in model saver
This aligns better with the relation principal "parent saves child" / "child cannot save parent" and is more conducive to the natural workflow of a coder, ie

// Relation first
$gallery = new Gallery;
$gallery->save();

// Primary model last
$post = new Post;
$post->gallery = $gallery;
$post->save();

Refs https://github.com/octobercms/library/pull/277
2017-12-06 21:21:19 +11:00
Samuel Georges
2036823eee Removes non functional buttons in pivot mode
Refs https://github.com/daftspunk/oc-test-plugin/issues/28
2017-12-06 17:19:37 +11:00
Pásztor Gábor
da9369bb14 Fix deprecated calls. (#3283)
Credit to @gpasztor87
2017-12-04 06:13:27 -06:00
Luke Towers
b1d0108227 Improved inline docs 2017-12-02 15:43:57 -06:00
ametad
d26f2aca6d Updating validation messages translations (#3261)
Updating validation messages to the latest Laravel 5.5 version. Credit to @ametad.
2017-12-02 15:37:23 -06:00
Samuel Georges
736188e26f Recompile assets 2017-12-02 17:43:14 +11:00
Jim Cottrell
1515261335 Trigger queue worker restart on settings model save 2017-11-30 14:51:54 -07:00
Steve Mortimer
7c20e32c47 Allow non-superusers with manage_users to set permissions back to inherit
Fixes #3274
2017-11-30 15:01:43 -06:00
TimFoerster
b59c86cc48 Change incorrect default CSS classes for table styles (#3270)
Credit to @TimFoerster for spotting this
2017-11-28 20:46:30 -06:00
Szabó Gergő
e9a42602df Add missing translation (#3269)
Fixes #3267
2017-11-28 08:27:15 -06:00
Samuel Georges
d2b2534699 Fixes poorly named event
Event names should be based on the class name, not the command name (so shouldn't ever need to contain the : character)
Refs #1644
2017-11-27 15:50:37 +11:00
Samuel Georges
9f1fe611e4 File cleaned up as part of review 2017-11-25 21:17:07 +11:00
SeriousKen
965d91e51c Trailing & in requestData if data is empty (#3262)
This fixes a small issue where the form is submitted an extra unnamed null field is present in the request due to a trailing & symbol in `requestData` when `data` is empty.
2017-11-23 09:54:17 -06:00
Luke Towers
2b6f4a0084 Properly support iconSvg in backend side nav menus 2017-11-22 17:23:01 -06:00
Samuel Georges
0b68668d14 Adds a constraint of 500 records at a time
Example given with 5000 records cripples the filter, this cap will keep it usable until we develop a better solution.
Refs #3202
2017-11-23 10:00:50 +11:00
Luke Towers
15314bbe94 Updating base widget inline documentation 2017-11-22 14:10:04 -06:00
Luke Towers
dfd629ee75 Added system.console.october:mirror.extendPaths
Fixes #1644
2017-11-22 13:59:23 -06:00
Samuel Georges
2092454343 Clean up from #3255
This logic could have been placed in the ValidationException class or the framework.js file. It seems more fitting for it to be in the framework.js file.
2017-11-22 13:47:34 +11:00
Jan
c165fc02d7 Fix ajax validation for array syntax (#3255) 2017-11-21 17:05:04 -06:00
Samuel Georges
0a428423af Twig partial() function should not throw exception
This allows checking if a partial exists
2017-11-19 14:58:47 +11:00
Luke Towers
f850b5d7ca Removes unnecessary blocking head placeholders. Refs: https://github.com/rainlab/pages-plugin/issues/239 2017-11-15 20:26:48 -06:00
Miro Rauhala
da295a83df Add Finnish language (#3237)
Credit to @mirorauhala
2017-11-11 18:36:55 -06:00
tim0991
579803d7a6 Update mediamanager JS file path in october.js (#3224)
Updates the mediamanager.js file path in october.js to fix compiling assets. Credit to @tim0991
2017-11-08 09:30:09 -06:00
Christophe Vuagniaux
cbcdd76ff2 Add filter of type text in backend list (#3094)
Fixes #3048, credit to @ChVuagniaux
2017-11-06 12:07:53 -06:00
Samuel Georges
712dcf9412 Use alias instead of leading slash
Refs d292eeb85ecb57f2aa84ab573ea6467584f268e2
2017-11-03 07:57:33 +11:00
Luke Towers
014bac1232
Simplify 51b6f6441813a1b9e884ab44b08989cb162dc0cd
Simplifies 51b6f64418 by using the pre-existing HTML array name parsing functionality.
2017-11-02 13:13:08 -06:00
Luke Towers
51b6f64418
Convert field name to dot syntax before checking validation rules
Converts a field name in the form of `model_json_attribute[subproperty]` to the dot syntax version used by validation rules `model_json_attribute.subproperty` for more accurate checking of the validation rules in the form widget.
2017-11-02 12:35:50 -06:00
Samuel Georges
e6de2a5521 Fixes exception on empty token 2017-11-02 19:53:20 +11:00
Luke Towers
d164145229
Fixes #2613
This fixes #2613 by reloading the form widgets with the modified data after `model.filterFields`. **NOTE**: `$this->processExistingItems()` isn't simply just moved to `prepareVars()` because that messes up the adding new repeater item functionality by repeating the content from the fields for the last item in that group that already exists on the repeater.
2017-11-01 14:18:41 -06:00
Nikolay
2239f988d2 Fixes #3211 with improvements to reverse migration (#3212)
Fixes #3211
2017-10-31 12:34:48 -06: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
Samuel Georges
4a6e0e1e0e Implement CSRF token by default
Implement CSRF protection on CMS for postback handling
2017-10-30 09:00:17 +11:00
arifnyet
eb0e5c74c1 Support default config option for list filters (#3201)
Fixes #2329
2017-10-26 11:12:02 -06:00
Fl0Cri
ec8dd56121 Fix richeditor popup z-index inside modal (#3194)
Fixes #3098. Related: #3111, #3113, #3114
2017-10-24 12:35:31 -06:00
Vojta Svoboda
04cb4ddd2c Check if given partial name is also file or only folder (#3190)
Fixes #2383. Credit to @vojtasvoboda, reviewed by @CptMeatball
2017-10-23 08:48:34 -06:00
Christophe Vuagniaux
dc16902fca Don't block backend connection when a plugin migration triggers exception (#3188) 2017-10-21 10:11:11 -06:00
Luke Towers
d292eeb85e Remove ambiguity around what classes are being used
Fixes https://github.com/octobercms/october/issues/3184.
2017-10-20 21:39:54 -06:00