20205 Commits

Author SHA1 Message Date
477a439a62 Fix minor changelog issues 2023-05-21 13:14:13 +04:00
a8e83abd8f Fix #19743: Non-associative array values in AR weren't considered dirty when reordered 2023-05-21 12:06:16 +03:00
301a1cf0e3 Fix #19807: Fix REST serializer not using serializeModel() when working with array of models 2023-05-21 11:16:22 +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
821f72dd9a Fix #19736: Fix StringHelper::truncate(null, 10) causes error Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated 2023-05-12 19:55:36 +03:00
a81a0d6b53 Fix #19720: Fix "zh-HK" locale causing [error][yii\i18n\PhpMessageSource::loadFallbackMessages] The message file for category 'yii' does not exist 2023-05-11 21:34:51 +03:00
400df717e4 Update LikeCondition::setEscapingReplacements() phpdoc (#19830) 2023-05-09 08:52:41 +02: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
4e23de91aa Removed copying of non-existing test files (#19822)
Tests patches are now loaded via URL (https://github.com/yiisoft/yii2/pull/18356).
2023-05-04 15:24:40 +03:00
b77caaa0b2 BC break: Calling a method unnecessarily (#19810)
* BC: Calling a method unnecessarily

Making an indirect call to the `$this->getOldAttributes()` method caused my code to break. I understand that the correct thing would be to reference `$this->_oldAttributes`.

* Null check

* Update CHANGELOG.md

* Change isAttributeDirty() method to isValueDifferent()

* Update CHANGELOG.md
2023-04-21 11:24:54 +02:00
a6ff298964 Revert "Fix #19804: Change $this->oldAttributes to $this->_oldAttributes to avoid calling a method unnecessarily"
This reverts commit 246a58163768f0b322ae28fc15200e6c33bef73f.
2023-04-18 19:57:09 +04:00
246a581637 Fix #19804: Change $this->oldAttributes to $this->_oldAttributes to avoid calling a method unnecessarily 2023-04-18 18:54:54 +03:00
1a07bb14d9 Cancel jobs in progress when PR is updated (#19801) 2023-03-31 15:43:39 +02: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
f388ca71b0 Fix #18867: Check-all checkbox should be unchecked on page load when GridView have no rows (#19764) 2023-02-20 18:21:00 +03:00
e8bf240c80 Small update in language (#19769)
* Use correct English terms

* Use a better word
2023-02-20 08:07:38 +01: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
5d0d6f4a18 Fix #19705: Add binary and other data type to $typeMap list for MySQL 2023-02-09 22:05:52 +03:00
7c07885375 Feature/dependency fixes for PHP 8.2 (#19746) 2023-01-24 00:01:18 +03:00
8f7fb576cb Remove array syntax in #19741 (#19745) 2023-01-22 11:26:27 +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
ff2d004c35 Fix #19734: PHP 8.1 compatibility fix for $query->orderBy(null) 2023-01-13 10:59:54 +04: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
38aff47b45 update helper-html.md php.net links (#19716) 2022-12-13 08:14:59 +01:00
3ad01aa0f0 Fix #19712: cast shell_exec() output to string for jsCompressor 2022-12-12 14:55:08 +03:00
e5da5d5796 update helper-array.md php.net links (#19714) 2022-12-11 10:00:29 +01:00
c55db9b305 Fix #19635: PHP 8.2 compatibility fix for yii\validators\DateValidator 2022-12-10 12:35:48 +03: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
75ffb9248e update tutorial-performance-tuning.md php.net links (#19708) 2022-12-08 08:10:34 +01:00
b7f492da71 newline is required for correct rendering (#19707) 2022-12-06 14:15:51 +01:00
2fa83a71fe update tutorial-i18n.md php.net links (#19703) 2022-12-06 08:14:40 +01:00
948029f583 Fix #19693: Fix db/Command not caching NULL result with scalar fetchMode 2022-12-04 19:55:12 +03:00
173cc5eeb6 update tutorial-core-validators.md wiki links (#19702) 2022-12-04 10:41:19 +01:00
a97934fd92 Fix #15376: Added cache usage for yii2\rbac\DbManager::getRolesByUser() 2022-12-02 13:45:45 +03:00
177e4d40b9 Update tutorial-core-validators.md php.net links (#19701) 2022-12-02 09:52:02 +03:00
995bd942b5 update rest-authentication.md wiki link (#19698) 2022-12-01 08:15:28 +01:00
fe46b59361 Change property visibility to allow more flexibility for apps (#19696)
* Change property visibility to allow more flexibility for apps

* Update framework/web/View.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>

* Added changelog

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2022-11-29 08:18:03 +01: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
51fc314f58 Add back SqlToken import in sqlite/Schema 2022-11-28 13:05:19 +04:00
63ae3f9a04 Fix #9740: Usage of DI instead of new keyword in Schemas 2022-11-27 19:10:23 +03:00