Commit Graph

199 Commits

Author SHA1 Message Date
rhertogh
31ca0fcb6f Fix #18676: Added method yii\helpers\BaseFileHelper::changeOwnership() and properties newFileMode/newFileOwnership in yii\console\controllers\BaseMigrateController
Co-authored-by: Bizley <pawel@positive.codes>
2021-05-30 19:26:15 +03:00
Bizley
4cb2dfef1a Add more tests for helpers (#18675) 2021-05-25 10:28:57 +03:00
Anton
2520e50c52 Fix #18653: Added method yii\helpers\BaseHtml::getInputIdByName() 2021-05-13 22:20:42 +03:00
Alexander Makarov
c9889cfd2f Update InflectorTest.php 2021-05-07 01:35:40 +03:00
Kamchybek Jusupov
9c8f653554 Added 'software' and 'hardware' string to BaseInflector $specials. 2021-05-03 14:34:22 +08:00
bscheshirwork
5ad809e815 Fix #18593: Fix setting the maxlength attribute for Html::activeInput() and Html::activeTextArea() based on length parameter of validator 2021-04-09 20:15:14 +03:00
Alexander Makarov
50831e6f08 Travis leftovers cleanup 2021-03-03 02:21:39 +03:00
Alexander Makarov
71791d790d Fix #18505: Fixed ArrayHelper::get() for ArrayAccess objects with explicitly defined properties
Co-authored-by: Bizley <pawel@positive.codes>
2021-02-04 15:30:56 +03:00
Bizley
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
Bizley
02c77da812 Fix #18395: Fix regression in yii\helpers\BaseArrayHelper::filter() (allowing filtering arrays with numeric keys) 2020-12-22 22:35:51 +03:00
Ivan Sidorov
cd36f505b1 Fix #16831: Fix console Table Widget does not render correctly in combination with ANSI formatting 2020-10-23 22:21:03 +03:00
Alex
e49a52f3a1 Fix #18210: Allow strict comparison for multi-select inputs 2020-08-05 15:12:42 +03:00
Alexander Makarov
bfc0698b36 Fix #18086: Fix accessing public properties of ArrayAccess via ArrayHelper::getValue() 2020-07-05 18:27:17 +03:00
Alexander Makarov
385fe13d66 Revert #18102 since renaming is technically problematic (#18109) 2020-06-17 13:40:17 +03:00
Brandon Kelly
472600ee3f Fix #18102: Use “primary”/“replica” terminology instead of “master”/“slave” 2020-06-14 00:12:10 +03:00
Alexander Makarov
f2d32fab77 Fix #18046: Add test for current ArrayHelper::merge() behavior (#18054) 2020-05-20 18:41:40 +03:00
Mikk Tendermann
35fb9c6248 Fix #18026: Fix ArrayHelper::getValue() did not work with ArrayAccess objects 2020-05-18 15:18:09 +03:00
Alexander Makarov
4de66f8205 Fix #16145: Fix Html helper checkboxList(), radioList(), renderSelectOptions(), dropDownList(), listBox() methods to work properly with traversable selection 2020-03-24 12:55:35 +03:00
Alexander Makarov
1d6d0d76c5 Fix HtmlTest to work well with line endings 2020-03-24 12:28:51 +03:00
alex-code
5939813a8e Fix #17797: Fix for activeListInput options
* Tests

Test for `activeListInput` options.
Also fixed test names for `checkbox` and `radio`.

* activeListInput options

Fix for `activeListInput` options.

* Update BaseHtml.php

* Update HtmlTest.php

* Update CHANGELOG.md

* Update BaseHtml.php

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2020-03-12 18:46:38 +03:00
Viktor Pikaev
c901608af7 Fix #17863: \yii\helpers\BaseInflector::slug() doesn't work with an empty string as a replacement argument 2020-02-19 03:26:33 +03:00
rhertogh
b794d76056 Fix #17829: yii\helpers\ArrayHelper::filter now correctly filters data when passing a filter with more than 2 levels 2020-01-29 01:03:31 +03:00
Brandon Kelly
beca7b45d3 Fix #17793: Fix inconsistent handling of null data attribute values in yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 21:35:09 +03:00
Brandon Kelly
7e471e3010 Fix #17792: Added support for aria attributes to yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 18:39:00 +03:00
Alexander Makarov
0ba9c619c7 Fix #17760: Fix JSON::encode() for \DateTimeInterface under PHP 7.4 2020-01-09 18:52:48 +03:00
Evgeny
62acca9f3d Fix #17740: yii\helpers\BaseInflector::slug() doesn't replace multiple replacement string occurrences to single one 2019-12-17 15:19:15 +03:00
Brandon Kelly
d7f69b6676 Fix #17625: Fix boolean data attributes from subkeys rendering in Html::renderTagAttributes() 2019-10-22 12:26:28 +03:00
Somogyi Márton
f5776a968c #17508 fix 2019-08-18 08:33:31 +02:00
Alexander Kartavenko
c5397f8784 Closes #16411. Fix windows tests (#17380)
* Fix `\yiiunit\framework\helpers\ConsoleTest::testErrorSummary`
* Fix `\yiiunit\framework\console\controllers\PHPMessageControllerTest::testRemoveUnusedBehavior`
2019-06-19 16:48:20 +03:00
Razvan Grigore
9c37016dac Fixes #17235: yii\helpers\FileHelper::normalizePath() now accepts stream wrappers 2019-03-29 18:26:31 +03:00
Pavel Dovlatov
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
Brandon Kelly
1cc83f02f5 Fixes #17150: Fixed yii\helpers\BaseInflector::camel2words() splitting ALLCAPS words on each letter 2019-02-22 23:41:14 +03:00
Bizley
de5b903806 Fixed regression in #16817 (#17056) 2019-01-21 15:20:43 +03:00
Dzhuneyt
a790685e66 Fixes #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier 2019-01-03 15:12:42 -05:00
Nikolay Oleynikov
06227c7075 Fixes #16648: Html::strtolower() was corrupting UTF-8 strings 2018-11-20 01:09:03 +03:00
Bizley
1342eb718b Fixes #15204: yii\helpers\BaseInflector::slug() is not removing substrings matching provided replacement from given string anymore 2018-10-23 22:33:18 +03:00
Bizley
f3438c450c Fixes #10843: Additional hidden input rendered by yii\helpers\BaseHtml methods inherits disabled HTML option if provided and set to true 2018-10-23 21:29:46 +03:00
Alexandr Ivanov
af3b8b2f23 Fixes #11960: Fixed checked option ignore in yii\helpers\BaseHtml::checkbox() 2018-10-07 16:29:08 +03:00
Alexandr Ivanov
0ad5afd387 Fixes #14759: Fixed yii\web\JsonResponseFormatter output for null data 2018-10-07 16:26:59 +03:00
Evgeniy Moiseenko
4d26c915dc Additional fix for #14230 2018-09-25 17:41:45 +03:00
Evgeniy Moiseenko
a8bfe8bbe6 Fixes #14230: Fixed itemsOptions ignored in checkBoxList 2018-09-19 17:39:21 +03:00
Evgeniy Moiseenko
3eba4ea69a Fixes #16680: Fixed ActiveField 'text' input with maxlength 2018-09-13 12:18:18 +03:00
Alexey
bf5476f253 Fixes #15889: Fixed override yii\helpers\Html::setActivePlaceholder 2018-07-29 00:07:09 +08:00
Thoulah
a32cfcc8ef Fixes #16266: Fixed yii\helpers\BaseStringHelper where explode would not allow 0 as trim string 2018-05-13 01:14:39 +03:00
SilverFire - Dmitry Naumenko
3d96a45f6b Fixed BC breaking change in Inflector
Fixes #16239
2018-05-08 16:39:55 +03:00
SilverFire - Dmitry Naumenko
629a33fd0e Made Inclector unicode-safe 2018-05-01 12:32:16 +03:00
SilverFire - Dmitry Naumenko
b9aa0001b6 Fixed yii\helpers\Inflector::camel2words() to work with UTF-8 2018-04-29 13:13:56 +03:00
Carsten Brandt
314b66827b added test to verify #15298 2018-04-10 09:40:15 +02:00
Pavel Ivanov
4e940a2772 Fix travis builds for 'nightly' php (#15992)
1) Fixed unexpected exceptions (PHP nightly): https://travis-ci.org/yiisoft/yii2/jobs/358866164#L789
2) Fixed session issues (PHP hhvm): https://travis-ci.org/yiisoft/yii2/jobs/358866162#L841
3) Excluded unicode characters check from 'nightly' PHP version
4) Also deprecated InvalidParamException replaced with InvalidArgumentException
2018-03-27 19:22:15 +03:00
SilverFire - Dmitry Naumenko
b3f54d1065 Simplified code, enhanced PHPDocs 2018-03-10 10:19:07 +02:00