216 Commits

Author SHA1 Message Date
4859c8fcae Fix #20309: Add custom attributes support to style tags 2025-02-14 09:59:48 +03:00
76150c5403 Revert "Fix #20198: Boolean values of the value HTML attribute are now converted to integer values"
This reverts commit 0e50cee88fe7817cd23c764f16a2b1f8feb0694f.
2024-06-19 21:04:17 +03:00
0e50cee88f Fix #20198: Boolean values of the value HTML attribute are now converted to integer values 2024-06-17 18:57:37 +03:00
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
bf3ada13fc Fix #20087: Add custom attributes to script tags 2024-04-03 16:18:16 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
018fcb5d96 Fix error summary always visible with CSP header (#19691)
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
2024-01-18 18:14:51 +01:00
c9c5c61f76 Fix error summary always visible with CSP header (#19691) 2024-01-18 16:30:22 +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
64adbd73c6 Fix #19534: Fix yii\helpers\BaseHtml::renderSelectOptions() to properly render boolean selection 2022-11-17 15:49:09 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
94dfccd6fa 19324 dropdownlist selection for boolean attributes (#19331)
* Fix #19324 by allowing for direct comparison

* Invert meaning of strict

* Remove WinterSilence from authors list

* Fix improper implementation of strict checks

* Add test for renderSelectOptions

* Partially revert 'Fix improper implementation of strict checks'

* Add additional tests for strict

* Revert 'Fix improper implementation of strict checks'

* Add failing test for demonstration

* Comment out demonstration test

* Update framework/CHANGELOG.md

Co-authored-by: Bizley <pawel@positive.codes>

Co-authored-by: Bizley <pawel@positive.codes>
2022-04-11 09:44:48 +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
1271bc419f Fix #19041: Fix PHP 8.1 issues 2022-01-14 13:52:01 +03:00
655786b7ed release version 2.0.44 2021-12-30 10:50:56 +03:00
6fb16bc30f Fix #19098: Add yii\helper\BaseHtml::$normalizeClassAttribute to fix duplicate classes 2021-12-27 21:44:48 +03:00
552593ca3b Prepare for new apidoc (part 2) (#19010)
* Fix broken links for events with different namespace
* Fix broken links in see tag
* Fix broken links in see tag (loadData())
* Fix broken link for var_export()
* Fix broken link for CVE
* Remove redundant markdown link wrap in see tags
* Remove see tags that refer to private properties
* Remove more see tags that refer to private properties
* Remove see tags that refer to private methods
* Remove one more redundant markdown link wrap in see tag [skip ci]
* Fix typo in see tag (causes broken link)
* Remove more see tags that refer to private methods
2021-11-18 10:10:09 +03:00
53477e8ad9 Correct note about html encoded items in radio/checkboxlist (#19007) 2021-11-09 21:16:57 +01:00
0041f034fd [doc] Update PHP doc links (#18957)
* Replace https://secure.php.net with https://www.php.net

* Replace http://www.php.net with https://www.php.net
2021-10-19 14:50:26 +02:00
2520e50c52 Fix #18653: Added method yii\helpers\BaseHtml::getInputIdByName() 2021-05-13 22:20:42 +03:00
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
f450760449 Fix typo 2020-12-06 12:12:46 +03:00
e49a52f3a1 Fix #18210: Allow strict comparison for multi-select inputs 2020-08-05 15:12:42 +03:00
f3f5312469 Update BaseHtml and Formatter typehints (#18185) 2020-07-19 11:14:45 +03:00
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
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
beca7b45d3 Fix #17793: Fix inconsistent handling of null data attribute values in yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 21:35:09 +03:00
7e471e3010 Fix #17792: Added support for aria attributes to yii\helpers\BaseHtml::renderTagAttributes() 2020-01-10 18:39:00 +03:00
d7f69b6676 Fix #17625: Fix boolean data attributes from subkeys rendering in Html::renderTagAttributes() 2019-10-22 12:26:28 +03:00
c8564241d3 Remove extra spaces from Html::csrfMetaTags (#17370) 2019-06-14 15:02:47 +03:00
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
768d590eef added missing @since annotations 2019-01-31 00:45:25 +01:00
a790685e66 Fixes #16974: Regular Expression Validator to include support for 'u' (UTF-8) modifier 2019-01-03 15:12:42 -05:00
06227c7075 Fixes #16648: Html::strtolower() was corrupting UTF-8 strings 2018-11-20 01:09:03 +03:00
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
af3b8b2f23 Fixes #11960: Fixed checked option ignore in yii\helpers\BaseHtml::checkbox() 2018-10-07 16:29:08 +03:00
4d26c915dc Additional fix for #14230 2018-09-25 17:41:45 +03:00
a8bfe8bbe6 Fixes #14230: Fixed itemsOptions ignored in checkBoxList 2018-09-19 17:39:21 +03:00
3eba4ea69a Fixes #16680: Fixed ActiveField 'text' input with maxlength 2018-09-13 12:18:18 +03:00
bf5476f253 Fixes #15889: Fixed override yii\helpers\Html::setActivePlaceholder 2018-07-29 00:07:09 +08:00
b3f54d1065 Simplified code, enhanced PHPDocs 2018-03-10 10:19:07 +02:00
52263077c0 Bug #15858: Fixed array undefined offset error calling Html::errorSummary with same error messages from different model attributes. (FabrizioCaldarelli) 2018-03-08 23:24:41 +01:00
1c473325ac Fixes #15742: Updated setActivePlaceholder to be consistent with activeLabel 2018-02-23 12:33:41 +03:00
d39d3ed0a6 Fixes #15644: Avoid wrong default selection on a dropdown, checkbox list, and radio list, when a option has a key equals to zero 2018-02-15 18:23:12 +03:00
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
9aac304220 Add some @see references near HTML class attribute handling [ci skip] (#15558) 2018-01-25 15:08:40 +03:00
4f7b410230 Fixes #9771: Assign hidden input with its own set of HTML options via $hiddenOptions in activeFileInput $options 2018-01-24 17:02:03 +03:00
b44bbd6a13 Fix code issues (#15435)
* Fix some scrunitizer warnings

* Remove obsolete require

* Fix codestyle
2018-01-01 16:21:37 +03:00
c4e1ea28f4 Updated PHPDocs, reordered CHANGELOG 2017-12-24 15:50:02 +02:00
03ab53e1fb Rename method 2017-12-24 09:52:12 +05:00