Commit Graph

8965 Commits

Author SHA1 Message Date
Alexander Makarov
09901a2af1 Minor changelog fixes 2016-12-18 13:22:09 +03:00
Pavel Chaplygin
25e6eb04a5 refs #11122: Fixed can not use orderBy with aggregate functions (#12772)
* refs #11122: Fixed can not use `orderBy` with aggregate functions like `count`, `max` etc.

* Update QueryTest.php
2016-12-18 11:28:34 +02:00
SilverFire - Dmitry Naumenko
a710345ea7 Enhanced PHPDocs, added Unit tests, updated CHANGELOG 2016-12-18 11:24:24 +02:00
voskobovich
4afbad1aae Calculation of activity menu item through the closure
Extended documentation
2016-12-18 11:24:24 +02:00
Alexey Rogachev
8d813f7bf1 Fixes #12840, #12836, #13231, #13232
Additionally added tests for #10302 (#10284 (comment)), #10284 (#10217 (comment)), #11729
2016-12-18 12:06:17 +03:00
SilverFire - Dmitry Naumenko
24dae19fc8 ListView: PHPDocs and tests enhanced 2016-12-18 10:56:52 +02:00
SilverFire - Dmitry Naumenko
cdabb660d6 Refactored ListView::beforeItem, ::afterItem. Added Unit tests. 2016-12-18 10:52:12 +02:00
mdmunir
cc2e6bcd56 Add beforeItem and afterItem to the `ListView'
added changelog
2016-12-18 10:52:07 +02:00
Alexander Makarov
bd552113b2 Fixes #11906: Updated yii\widgets\MaskedInput inputmask dependency to ~3.3.3 2016-12-18 01:25:55 +03:00
NabiKAZ
40143239b2 Fixes #13235: Update persian (farsi) messages and some translate it (#13237) 2016-12-17 22:01:49 +02:00
Daniel Gómez Pan
b985ea3476 Fix #13108: Negative integer parameter causes "Unknown alias" error w… (#13220)
* Fix #13108: Negative integer parameter causes "Unknown alias" error when you execute command console

* Fix #13108: Fix small issues

* Update Request.php

change order
2016-12-17 21:30:36 +02:00
Alexander Makarov
cad400b6ff Added rob006 to changelog line 2016-12-17 16:39:47 +03:00
Alexander Makarov
a7f0a3c147 Merge branch 'master' into fix-numbervalidator-comma-decimal-separator 2016-12-17 16:39:00 +03:00
SilverFire - Dmitry Naumenko
4e32fb1eba Enhanced PHPDocs 2016-12-17 12:44:39 +02:00
Ni-san
5795b3937e Added rbac\BaseManager::hasNoAssignments() 2016-12-17 12:37:36 +02:00
SilverFire - Dmitry Naumenko
7b5efe5161 Enhanced handleAction() in yii.js
Closes #12737
2016-12-17 10:17:30 +02:00
Carsten Brandt
cb52c42cf5 more details about PHP 5 and 7 compatibility regarding Throwable 2016-12-17 00:43:48 +01:00
Carsten Brandt
66e8158716 Fixes #11771: Fixed semantics of yii\di\ServiceLocator::__isset() to match the behavior of __get() which fixes inconsistent behavior on newer PHP versions 2016-12-16 23:48:08 +03:00
Sergey
483c6c1867 Fixes #12713: Fixed yii\caching\FileDependency to clear stat cache before reading filemtime 2016-12-16 23:35:46 +03:00
Brandon Kelly
350e93e626 Fixes #12612: Query conditions added with yii\db\Query::andWhere() now get appended to the existing conditions if they were already being joined with the and operator 2016-12-16 13:19:14 +03:00
Alexander Makarov
8c5c7047a6 Merge branch 'master' into fix-pjax-automatic-id 2016-12-16 12:47:18 +03:00
Carsten Brandt
18bac955c1 docs about JSON and UTF-8
fixes #10761
2016-12-16 03:08:02 +01:00
Carsten Brandt
a3b6dfbb7b Catch \Throwable in critical places
Added catch `\Throwable` to be compatible with PHP7.
Added it in cases where object state needs to be kept consistent.

Mainly on transactions but also some other places where some values are
reset before exiting.

Most of them could probably be refactored by using `finally` in 2.1, as
that requires PHP 5.5.

fixes #12619
2016-12-16 02:20:02 +01:00
Carsten Brandt
e963b2af64 fix ArrayHelper::getValue() to throw exception on invalid input
fixes #12927
2016-12-16 01:49:37 +01:00
Carsten Brandt
22787571b4 Update UPGRADE.md 2016-12-16 00:58:17 +01:00
Carsten Brandt
4496b3e799 note about disabling serializer on arraycache
close #12984
2016-12-16 00:26:18 +01:00
Alexander Makarov
8ba78398c7 Handle root tag set to null or false or empty. Fixed version in @since 2016-12-16 02:23:08 +03:00
Carsten Brandt
6d4c61ce16 fixed changelog 2016-12-16 00:04:00 +01:00
Carsten Brandt
9821c589c5 fixed issue with rest\UrlRule extraPatterns
url creation did not work when no HTTP verb was specified.
fixes #13200
2016-12-16 00:00:27 +01:00
Alexander Makarov
2f7c1b36b5 Fixes #12419: Added ability to remove root tag and object tags for yii\web\XmlResponseFormatter 2016-12-16 00:27:31 +03:00
SilverFire - Dmitry Naumenko
cfe5202e44 Fixed CHANGELOG merge problems 2016-12-15 23:21:20 +02:00
zalatov
1d5a6d1722 Add is_dir() validation for BaseFileHelper::findFiles().
Sometimes it throws exception when file/directory is deleted or moved while executing script.
2016-12-15 23:21:17 +02:00
mhthnz
1dcc6042b6 Initial work on #12419 2016-12-16 00:12:32 +03:00
SilverFire - Dmitry Naumenko
821ba54720 Reordered CHANGELOG 2016-12-15 22:41:02 +02:00
Alexander Makarov
877f82d27c Merge branch 'master' into fix-pjax-automatic-id 2016-12-15 22:07:58 +03:00
Alexander Makarov
3e03237713 Merge branch 'master' into query-filter-having 2016-12-15 18:04:05 +03:00
Elvira Sheina
bfba0aa711 Refactor validateAttribute method in UniqueValidator (#13202)
* Refactor validateAttribute method in UniqueValidator

Extract prepareParams and prepareQuery from validateAttribute,
so they can be tested separately.

* Added issue number to changelog

* Eliminated unneeded variable

* Renamed methods and parameters, update PHPDocs
2016-12-15 12:23:16 +01:00
Dmitry Naumenko
518be6b8ec Enhanced PHPDocs markup 2016-12-14 23:07:44 +02:00
Alexander Makarov
837b33767c Fixes #11697: Added filterHaving(), andFilterHaving() and orFilterHaving() to yii\db\Query
Signed-off-by: Alexander Makarov <sam@rmcreative.ru>
2016-12-14 23:58:04 +03:00
Konstantin Tsukur
e78a7fe20e Initial work on #11697 2016-12-14 23:57:02 +03:00
SilverFire - Dmitry Naumenko
88f2348ed5 Fixed ActiveRecord::unlinkAll() to respect onCondition()
Closes #12213
2016-12-14 22:51:21 +02:00
Sergey Makinen
da944aa9c0 Rebased "Revamps PageCache to store data in one entry (#10506)" (#12145) 2016-12-14 14:59:00 +03:00
SilverFire - Dmitry Naumenko
a132ee9a08 Fixed order or checks in IpValidator
Fixes #13198
2016-12-13 18:14:04 +02:00
Chris Harris
ae83dd0524 Fixes #13128: Fixed incorrect position of {pos} string in ColumnSchemaBuilder __toString 2016-12-11 23:36:35 +03:00
Dmitry Naumenko
75b98c6b7e Updated PHPDocs for Cache 2016-12-11 21:52:49 +02:00
SilverFire - Dmitry Naumenko
7d494c1915 Fixed unexpected form submit on validate() call
Fixed `validate()` method in `yii.activeForm.js` to prevent unexpected form submit
when `forceValidate` set to `true`

Closes #13105
2016-12-11 21:05:16 +02:00
Robert Korulczyk
8e0af24203 Fix protocol-relative URLs in Url::to() (#13156) (#13157)
* Fix protocol-relative URLs in `Url::to()`

* Use `isRelative()` in `Url::to()`
2016-12-11 20:39:21 +02:00
Zlakomanov Alexander
b8bf0d0c0c added hint into foreign keys query for oracle 11g optimisation
update oci tests
improved varible name

Closes #13122
2016-12-10 20:26:22 +02:00
Alexey Rogachev
d96363674c Added JS tests for yii.captcha.js (#12840), fixes #13159 (#13160)
* Added JS tests for yii.captcha.js (#12840), fixes #13159

* Sinon needs to be imported in similar fashion in other test files

* Added according line to CHANGELOG [skip ci]

* Update CHANGELOG.md

* Try to run tests with default timeout in Travis

* Added note about JS tests to the docs [skip ci]

* Simplified tests for multiple elements (init, destroy methods)
2016-12-10 14:42:28 +02:00
Boudewijn Vahrmeijer
475d18ca58 Merge branch 'master' into fix-pjax-automatic-id 2016-12-09 23:52:06 +01:00