16158 Commits

Author SHA1 Message Date
6d4c61ce16 fixed changelog 2016-12-16 00:04:00 +01:00
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
e83624df9e Closes #11418: Added test for #11418 2016-12-16 01:43:54 +03:00
f1a34773e1 Test empty commit 2016-12-16 00:20:21 +02:00
cfbdb06d6d Test empty commit 2016-12-16 00:12:12 +02:00
11c58549d4 Fixed FileHelperTest::testFindFilesRecursiveWithSymLink() 2016-12-15 23:36:16 +02:00
2f7c1b36b5 Fixes #12419: Added ability to remove root tag and object tags for yii\web\XmlResponseFormatter 2016-12-16 00:27:31 +03:00
50953c2960 Merge branch 'zalatov-fix-filehelper-findfiles-isdir' 2016-12-15 23:21:36 +02:00
9a45b70adf Updated FileHelperTest 2016-12-15 23:21:23 +02:00
cfe5202e44 Fixed CHANGELOG merge problems 2016-12-15 23:21:20 +02:00
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
1dcc6042b6 Initial work on #12419 2016-12-16 00:12:32 +03:00
821ba54720 Reordered CHANGELOG 2016-12-15 22:41:02 +02:00
877f82d27c Merge branch 'master' into fix-pjax-automatic-id 2016-12-15 22:07:58 +03:00
cc23f94b5d Merge pull request #13210 from yiisoft/query-filter-having
Query filter having
2016-12-15 18:10:58 +03:00
3e03237713 Merge branch 'master' into query-filter-having 2016-12-15 18:04:05 +03:00
b78d6367ba Removed duplicate assertion from tests, divided test method into two 2016-12-15 18:02:25 +03:00
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
01997441cc added tests for rest\UrlRule::createUrl()
verify issue #13200
2016-12-15 01:41:28 +01:00
518be6b8ec Enhanced PHPDocs markup 2016-12-14 23:07:44 +02:00
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
e78a7fe20e Initial work on #11697 2016-12-14 23:57:02 +03:00
88f2348ed5 Fixed ActiveRecord::unlinkAll() to respect onCondition()
Closes #12213
2016-12-14 22:51:21 +02:00
da944aa9c0 Rebased "Revamps PageCache to store data in one entry (#10506)" (#12145) 2016-12-14 14:59:00 +03:00
7be8ccbb41 All words in h3 in docs must start with capital letter (#13207) 2016-12-14 12:44:15 +01:00
a1581329cf Fixes #13183: Docs for working with separated migrations (#13201) 2016-12-14 13:19:43 +03:00
a132ee9a08 Fixed order or checks in IpValidator
Fixes #13198
2016-12-13 18:14:04 +02:00
50b668eee8 redundant code removed 2016-12-13 16:54:51 +02:00
b13940c31d Minor syntax and style fixes 2016-12-13 02:39:05 +03:00
b6e250857c Edited and extended Guide section about client scripts
This section had the "under development note" for a long time and was
lacking a lot of information.
It should also contain info about `yii.js` but that is to be added in
another PR.
2016-12-13 00:07:45 +01:00
ae83dd0524 Fixes #13128: Fixed incorrect position of {pos} string in ColumnSchemaBuilder __toString 2016-12-11 23:36:35 +03:00
75b98c6b7e Updated PHPDocs for Cache 2016-12-11 21:52:49 +02:00
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
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
2645b5ac78 Merge branch 'zlakomanoff-13122-oracle-optimisation' 2016-12-10 20:26:56 +02:00
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
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
475d18ca58 Merge branch 'master' into fix-pjax-automatic-id 2016-12-09 23:52:06 +01:00
bd85b7ced2 Closes #6242: Access to validator in inline validation (#13027)
* Closes #6242: Access to validator in inline validation

* Updated PHPDoc according to PR review [skip ci]

* Imrpoved PHPDoc, updated guide info [skip ci]

* Fixes related with PR review

* Corrected CHANGELOG [skip ci]

* Update input-validation.md

added version info
2016-12-08 23:29:53 +01:00
3611aa409b Fixes PageCacheTest: requestedRoute is not set up (#13173) 2016-12-08 23:12:52 +01:00
92eee10ae1 Change the name of method getQueryTableName and remove its $query argument (#12893)
* refactores getQueryTableName:
* replaces the $query argument with a $this implementation

* exposes getQueryTableName to be public instead of private. Fixes #12878

* added unit tests for exposed method

* updated changelog

* - methodname changed to 'getTableNameAndAlias'
- scope back to private
- added @internal tag to emphasize that the method is used purely for the internal workings of this piece of software.
- removed changelog (as the API has not changed)

* update tests
2016-12-08 21:22:18 +01:00
65e4a28800 consistent behavior for Yii::$app->controller and ->action (#13167)
Fixed inconsistency, `Yii::$app->controller` is available
after handling the request since 2.0.10, this is now also the case for
`Yii::$app->controller->action`.

fixes #12795
2016-12-08 18:00:05 +01:00
33c27bcf1e Update yii.php
fixes #13169
2016-12-08 16:56:39 +01:00
6e826dfade Assorted minor Russian guide updates [skip ci] 2016-12-08 22:17:32 +07:00
d815ca102a Updated Russian translation of AR guide [skip ci] 2016-12-08 22:17:32 +07:00
447c68bef7 Updated configuration and DI guides Russian translation [skip ci] 2016-12-08 22:17:32 +07:00
74f72ac663 Updated caching guide Russian translation [skip ci] 2016-12-08 22:17:32 +07:00
4fd7a9d29e Merge branch 'sergeymakinen-pagecache-tests' PR #13149
* sergeymakinen-pagecache-tests:
  refactored pagecache test
  Adds tests for yii\filters\PageCache

close #13149
2016-12-08 15:08:18 +01:00
8913bee15a refactored pagecache test
- use dataprovider for different test cases instead of foreach
- use time mocking to avoid sleep(2)
2016-12-08 15:07:33 +01:00
f8787b4471 Adds tests for yii\filters\PageCache 2016-12-08 15:06:56 +01:00