Commit Graph

3703 Commits

Author SHA1 Message Date
Samuel Georges 4eab0670c4 Proxy ConsoleSupportServiceProvider properly
Refs https://github.com/octobercms/october/pull/3353
Refs https://github.com/octobercms/october/issues/3321
Refs https://github.com/octobercms/october/pull/3328
Refs https://github.com/octobercms/october/issues/3359
2018-01-24 18:09:41 +11:00
Ramin Firooz 3c50849eb7 Update Persian Translation (#3367)
Credit to @EleRam
2018-01-21 09:35:02 -06:00
Samuel Georges 45f1714a03 Added key mode to taglist form widget
Alternative implementation #2958
Fixes #2958
2018-01-13 20:49:31 +11:00
Samuel Georges 6ff6ab2996 Convert strings to ::class 2018-01-13 14:40:44 +11:00
Arthur Kushman bbc33710c1 >= PHP7.0 refactoring (#3343)
* Fix loosly comparison to strict + argument types and return types for >=7.0
* Change hard-coded strings to ::class, 
* Fix unit-tests failures - some relative to 7.0 phpunit env deployment
* Fix exception string + format return types
* Change string representation of new classes in traceLog to ::class
Credit to @arthurkushman
2018-01-12 00:23:20 -06:00
Derrick Austin 74b3780ab5 Build Number Bugfix: Console Upgrade (#3357)
Credit to @austinderrick
2018-01-11 11:59:30 -06:00
Szabó Gergő 0256ebc966 Add role filter to administrators (#3350)
Credit to @gergo85
2018-01-10 10:18:19 -06:00
Jan Vince ce864cc8fb Catch Artisan::call exception (#3342)
This change will allow settings to be saved even when Exception is thrown in Artisan::call (eg. when putenv() function is disabled).
Fixes #3339. Related: #3280.
2018-01-08 08:29:43 -06:00
Flakerim Ismani 55ff460895 Added colorpicker column type (#3338)
Renders 30px by 30px square of the selected colour. `type: colorpicker` in the columns config. Credit to @flakerimi
2018-01-04 12:54:30 -06:00
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 d292eeb85e
2017-11-03 07:57:33 +11:00
Luke Towers 014bac1232
Simplify 51b6f64418
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