414 Commits

Author SHA1 Message Date
dc65bd3726 Fix #19655: Fix LinkPager::getPageRange when maxButtons is 2 2025-09-27 11:56:04 +03:00
53256fdd24 Fix #20513: Fix code examples in PHPDoc 2025-09-06 00:22:56 +03:00
f3eefee572 Fix #20348: ErrorHandler::convertExceptionToError() Passing E_USER_ERROR to trigger_error() is deprecated since PHP 8.4 2025-06-25 15:07:46 +03:00
af600c3d0b Update PHPDocs - ActiveForm::validate() (#20395) 2025-06-04 10:27:21 +03:00
8b50a4942a Fix @var tags syntax in framework folder (#20392) 2025-06-03 19:57:08 +03:00
1c191eac90 Update MetaStorm plugin config (#20324) 2025-02-18 09:28:18 +03:00
fd866da415 Basic setup for MetaStorm (#20307) 2025-01-13 00:44:34 +03:00
9ebb903a2e Add regex property to one of required option. 2024-06-24 17:40:29 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
60ea174348 Fix typo in Menu phpdoc (#20101) 2024-01-12 08:57:18 +03:00
5eeb12f275 Fix #19060: Fix yii\widgets\Menu bug when using Closure for active item and adding additional tests in tests\framework\widgets\MenuTest 2023-10-20 16:49:25 +03:00
6ceb6f65f4 Fix MaskedInputAsset::class. 2023-10-15 06:28:12 -03:00
68b473679a release version 2.0.47 2022-11-18 20:21:58 +04:00
0ababa2d36 small fix #19530 (#19532)
* small fix #19530

* small fix #19530 | fix test

* small fix #19530 | fix test

* small fix #19530 | fix test

* small fix #19530 | update CHANGELOG.md

* Update framework/CHANGELOG.md

Co-authored-by: viktor.shumeiko <viktor.shumeiko@simbirsoft.com>
Co-authored-by: Alexey Rogachev <arogachev90@gmail.com>
2022-09-05 17:32:20 +06:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
d9c41fa207 Fix #19420: Update list of JS callbacks in yii\widgets\MaskedInput 2022-06-01 11:33:28 +03:00
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
4628b91e73 Fix types (#19332)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect
2022-03-30 18:40:10 +02:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
6aa5bd8d46 Fix #18967: Use proper attribute names for tabular data in yii\widgets\ActiveField::addAriaAttributes() 2021-11-22 13:00:45 +03:00
533b569005 Fix PhpDoc of ActiveField (#19001) 2021-11-12 00:21:03 +03:00
fa6f0ef658 Fix variable references in phpdoc (#19006) 2021-11-10 13:26:55 +03:00
e3028c524d Fix #18899: Replace usages of strpos with strncmp and remove redundant usage of array_merge and array_values 2021-09-28 11:06:46 +03:00
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03:00
82be8b61cf Replacing deprecated ::className() with ::class (#18671) 2021-05-22 23:14:54 +03:00
a03fb0c01e Fix #17631: Fix yii\widgets\BaseListView to properly render custom summary 2021-03-26 13:53:42 +03:00
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
98533b7e31 Fix #18426: Fix check for route's leading slash in yii\widgets\Menu 2020-12-09 14:05:26 +03:00
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
973ecda74c Fix #16892: Validation error class was not applied to checkbox and radio when validationStateOn = self::VALIDATION_STATE_ON_INPUT
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-09-11 22:28:10 +03:00
da1fddb576 Fix #17766: Remove previous PJAX event binding before registering new one 2020-01-11 16:27:55 +03:00
23a8d041a6 Fix #17853: Fix errors in ActiveField to be properly caught when PHP 7 is used
Changed __toString method to catch all PHP 7 error types. \Throwable is part of PHP 7+, so I left the \Exception in for older PHP.
2019-10-03 15:03:12 +03:00
a6b135e058 Fix #17355: Fixed Pjax after request event bug 2019-08-27 18:56:33 +03:00
8d9947f06a Fixes #17299: Fixed adding of input error class in \yii\widgets\ActiveField::widget 2019-05-28 09:03:39 +02:00
e9b33916b6 Fixes #17220: Fixed error when using non-InputWidget in active form field 2019-03-28 12:57:44 +03:00
f7fcc0043e Revert "Fixes #17220: Fixed widgets with no options"
This reverts commit a7f98964151d5894d9862fb0a1bf80040de86b69.
2019-03-24 15:57:46 +03:00
a7f9896415 Fixes #17220: Fixed widgets with no options 2019-03-23 11:29:38 +03:00
a8d4f8538e Fixes #16681: ActiveField::inputOptions were not used during some widgets rendering 2019-03-09 15:39:58 +03:00
8b7e878f1d Revert "Fixes #16629: ActiveField::inputOptions were not merged with options passed for radio and checkbox"
This reverts commit 8334ab3060dc97fac87c1fb176ce6d92be175e80 as it
breaks layout for checkboxes with Bootstrap
2018-11-21 18:32:24 +02:00
8334ab3060 Fixes #16629: ActiveField::inputOptions were not merged with options passed for radio and checkbox 2018-11-20 01:12:17 +03:00
9fadc6e102 Optimize comment of LinkPager (#16758) [skip ci] 2018-10-06 00:48:20 +03:00
9910519aba Revert "Fixes #16657: Ensure widgets after run event result contains the result of the rendered widget"
This reverts commit 7dc38ff4029ec96931c574dac430a924370ea039.
2018-10-01 01:04:11 +03:00
7dc38ff402 Fixes #16657: Ensure widgets after run event result contains the result of the rendered widget 2018-09-23 13:28:09 +03:00
26700f06d1 Merge ActiveField condition with the parent (#16715) 2018-09-19 20:14:32 +03:00
f7862c16c7 Fixes #14368: Added role attribute for active radio list 2018-09-17 02:26:42 +03:00
9d03667b40 Fixes #16527: Fixed return content for \yii\widgets\ActiveForm::run() 2018-07-28 23:50:22 +08:00
cdcbb7575a Simlified FQCN [skip ci] 2018-03-01 09:55:43 +02:00
d0a6302b37 Update ActiveField.php
Used Html instead BaseHtml
2018-03-01 08:05:25 +01:00
3838208cbc Fixed has-error class to ActiveField div container when attribute name is tabular 2018-02-28 10:25:14 +01:00