3340 Commits

Author SHA1 Message Date
ace4a5b888 fix: separate test Head Serialize DataProvider 2023-10-20 10:47:17 +08:00
344b0aecf3 core: add collectionEnvelope unit test 2023-10-18 16:36:43 +08:00
4f2a7c5f03 Merge branch 'bugfix/20002-Superfluous_query_on_HEAD_request_in_serializer' of https://github.com/xicond/yii2 into bugfix/20002-Superfluous_query_on_HEAD_request_in_serializer 2023-10-18 15:57:19 +08:00
b9a30a8df2 feat: add HEAD unit test serializer 2023-10-18 15:56:32 +08:00
cba3a5e87e Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-10-17 09:50:31 +02:00
02ed808056 New methods: BaseActiveRecord::loadRelations() and BaseActiveRecord::loadRelationsFor(). 2023-10-13 13:22:48 +03:00
f0b970d4dd Merge branch 'master' into 13920-validation-marks-valid-field-as-invalid 2023-09-20 15:21:29 +02:00
9aac121d01 Fix #13920: Add unit test 2023-09-20 15:15:31 +02:00
30b491dfdf removed MIME file tests (#19951)
* removed MIME file tests
see also 0f7248c7a2 (commitcomment-127223170)

* added CHANGELOG line
2023-09-13 13:23:21 +02:00
e8c4a7e56e added PHP version check, fixed #19925 (#19936)
* added PHP version check, fixed #19925

* added CHANGELOG line

* fixed typo

* fixed typo

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
Co-authored-by: Bizley <pawel@positive.codes>
2023-09-04 10:09:49 +02:00
671fbefe84 File Log writer without newline. (#19941)
* File Log writer without newline.

* Fix minor correction.

* Fix tests.

* Add more test.

* Add line to CHANGELOG.md.
2023-08-30 14:14:12 +02:00
8532622d7b Fix #19911: Resolved inconsistency in ActiveRecord::getAttributeLabel() with regard of overriding in primary model labels for attributes of related model in favor of allowing such overriding for all levels of relation nesting 2023-08-26 07:06:41 +04:00
e916e9d564 Fix #19914: Fixed ArrayHelper::keyExists() and ::remove() functions when the key is a float and the value is null 2023-08-18 15:31:09 +04:00
73f57fdcb0 Fix #19872: Fixed the definition of dirty attributes in AR properties for a non-associative array in case of changing the order of elements 2023-08-18 15:19:24 +04:00
73902f0730 Added support for string and DateTimeInterface as Cookie::$expire (#19920)
* Added support for string as Cookie::$expire

* Updated changelog for #19920 (Broadened the accepted type of `Cookie::$expire` from `int` to `int|string|null`)

* Fixed `\yiiunit\framework\web\ResponseTest::parseHeaderCookies()` to overwrite existing cookie.

* Added support for `\DateTimeInterface` in `\yii\web\Cookie::$expire`

* Fixed `\yiiunit\framework\web\ResponseTest::cookiesTestProvider()` for PHP 5.4 and commited missing code for \DateTimeInterface processing in `\yii\web\Response::sendCookies()`
2023-08-15 18:38:10 +02:00
84c15dc5d1 Fix associative array cell content in Table widget (#19908)
* Fixed rendering of assosative arrays in `\yii\console\widgets\Table`

* Updated readme for #19908 (fix associative array cell content rendering in Table widget)

---------

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2023-08-09 14:05:46 +02:00
c8c0ea97c4 Fix #19899: Fixed GridView in some cases calling Model::generateAttributeLabel() to generate label values that are never used 2023-07-24 11:52:38 +03:00
79c83ba7db Fix #9899: Fix caching a MSSQL query with BLOB data type 2023-07-24 10:03:18 +03:00
7d2e2b9e70 Fix #16208: Fix yii\log\FileTarget to not export empty messages 2023-07-24 10:01:24 +03:00
1a0e91e912 Fix #19906: Fixed multiline strings in the \yii\console\widgets\Table widget 2023-07-24 09:56:04 +03:00
76d6345e85 Add test resetSequence() for SQLite. (#19895)
* Add test `resetSequence()`.

* add more test.
2023-07-17 09:53:21 +02:00
4352b8744b Fix #19884: Added support Enums in Query Builder 2023-07-10 18:07:10 +03:00
b9e5a87f54 Fix tests, clean workflows, separate db tests, use codecov for code coverage (#19883) 2023-07-10 07:12:07 +03:00
85171844cf Fix #19868: Added whitespace sanitation for tests, due to updates in ICU 72 2023-06-21 18:28:12 +03:00
3cebbdad2e Fix #19853: Added support for default value for \yii\helpers\Console::select() 2023-06-09 19:36:21 +03:00
80a18ad6ba Fix #18859: Fix yii\web\Controller::bindInjectedParams() to not throw error when argument of ReflectionUnionType type is passed 2023-05-31 21:30:45 +03:00
48617d54fc Fix #19843: Enable memcache/memcached tests (#19850) 2023-05-25 21:15:10 +03:00
37cd13e9c7 Fix #19847: Fix regression introduced in #15376 that caused DbManager::getRolesByUser() to return stale data 2023-05-24 20:21:37 +03:00
bfca9e33d9 Fix #19749: Add PHP 8.2 support
Co-authored-by: Tobias Munk <schmunk@usrbin.de>
Co-authored-by: Aldo Karendra <akarendra835@gmail.com>
Co-authored-by: Dana Luther <dana.luther@gmail.com>
Co-authored-by: Oleg Poludnenko <ua.oleg@gmail.com>
2023-05-21 15:17:59 +03:00
0fcd434c97 Fix #19838: Added yii\helpers\BaseFileHelper::getExtensionByMimeType() to get the most common extension for a given MIME type 2023-05-19 22:56:47 +03:00
0a811cbd0d Fix #19837: Fixed processing of numeric file extensions in yii\build\controllers\MimeTypeController::generateMimeTypesFile()
Fixed processing of nummeric file extensions in `\yii\build\controllers\MimeTypeController::generateMimeTypesFile()` and added common image file types (https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#common_image_file_types)
2023-05-19 00:28:48 +03:00
4e7aac710f Fix #19813: Fix yii\base\DynamicModel validation with validators that reference missing attributes 2023-05-04 15:37:45 +03:00
6e7d0fbff4 Fix #19816: Explicitly pass $fallbackToMaster as true to getSlavePdo() to ensure it is not affected by child class with changed defaults 2023-05-04 15:36:33 +03:00
87f05afb8a Prevent redirection with new line character in the route (#19800)
* Prevent redirection with new line character in the route

* Remove escape

* Remove import

* Changelog

* Remove \
2023-03-31 14:40:31 +02:00
aa1e4432f1 Fix #19794: Add caching in yii\web\Request for getUserIP() and getSecureForwardedHeaderTrustedParts() 2023-03-30 11:51:09 +03:00
1260d4011b Fixed \yiiunit\framework\helpers\JsonTest::testEncode() for PHP 5.4 (#19798)
* Fixed \yiiunit\framework\helpers\JsonTest::testEncode() for PHP 5.4

'\Generator' is only supported since PHP 5.5

* Actually fixed \yiiunit\framework\helpers\JsonTest::testEncode() for PHP 5.4

Turned out the test already failed during file parsing. Now using eval to "hide" the `yield`
2023-03-29 17:37:52 +02:00
5406e5dad3 Fix #19766: Add support for PHP generators to JSON helper 2023-02-27 14:48:22 +03:00
51208fcb99 Fix #19770: Fix yii\mutex\MysqlMutex keyPrefix expression param binding 2023-02-27 14:45:33 +03:00
95b0e6010e Fix #19683: Updated framework\mimeType.php to the actual value. Fix typo in build/controllers/MimeTypeController.php 2023-02-11 19:21:51 +03:00
17955140d5 Fix #19741: Added option to use a closure for $variations definition in yii\filters\PageCache 2023-01-21 00:26:40 +03:00
581a7b2543 Fix #19735: Fix yii\validators\NumberValidator to use programmable message for the value validation 2023-01-13 10:57:03 +04:00
55ea8eee1e Fix sorting link for multisort with default order (#19733)
* Add sort tests

* Fix link for multisort

* changelog

* Fix test
2023-01-10 12:16:04 +01:00
7ed855ccae Add FileHelper test for a negative except, clarify docs (#19723) 2022-12-30 00:37:32 +04:00
7b369576a8 Fix #15376: Added $userId for RBAC roles cache 2022-12-28 19:43:20 +04:00
41d232f25e Bug #18867: Fixed multiple issues with yii\grid\CheckboxColumn
- "check all" checkbox not being checked on page load when all data row checkboxes are initially checked
- clicking checkboxes triggered "change" event for other checkboxes that do not change their state
- "check all" checkbox not being checked when disabled checkboxes are present and clicking last non-checked data row checkbox
2022-12-28 19:35:42 +04:00
819b7cf701 Fix #17194: Fix unnecessary SQL updates in the database on attributes typecast via yii\behaviors\AttributeTypecastBehavior 2022-12-09 12:26:23 +03:00
948029f583 Fix #19693: Fix db/Command not caching NULL result with scalar fetchMode 2022-12-04 19:55:12 +03:00
1f0f701bc3 Fix #19689: Remove empty elements from the class array in yii\helpers\BaseHtml::renderTagAttributes() to prevent unwanted spaces 2022-11-28 23:57:25 +03:00
64adbd73c6 Fix #19534: Fix yii\helpers\BaseHtml::renderSelectOptions() to properly render boolean selection 2022-11-17 15:49:09 +03:00
12a2030fbd Fix intl differences in tests (#19679) 2022-11-16 01:37:41 +03:00