Klimov Paul
2466d397ae
Fixed `yii\validators\ExistValidator` and `yii\validators\UniqueValidator` throw exception in case they are set for `yii\db\ActiveRecord` with `$targetClass` pointing to NOSQL ActiveRecord
7 years ago
Dmitry Dorogin
a731fd4142
Fixes #14318 : Trigger `yiiActiveForm.events.afterValidateAttribute` after updating attribute
7 years ago
Dmitry Dorogin
d4ded67f69
Fixes #14513 : Updated phpdoc and added tests for yii\rbac\ManagerInterface::assign and yii\rbac\ManagerInterface::revoke functions ( #14528 )
7 years ago
Carsten Brandt
f24d29a46f
Added guide about Client side Javascript of ActiveForm ( #12541 ) [skip ci]
7 years ago
Dmitry Dorogin
1ee29c630d
Fixes #14493 : Fixed getting permissions in `yii\rbac\Dbmanger::getPermissionsByUser` by user with id equals 0
7 years ago
Dmitry Dorogin
e2ba94abd6
Fixes #7823 : Added `yii\filters\AjaxFilter` filter
7 years ago
Klimov Paul
578b2caf42
Added `yii\web\MultipartFormDataParser::$force` option allowing to enforce parsing even on 'POST' request
7 years ago
Alexander Makarov
915c78facd
Fixed ExitCode::getReason()
7 years ago
PowerGamer1
8a6f5829d4
Fix for invalid example in Request phpdoc [skip ci]
7 years ago
Dmitry Dorogin
8ae2223c6a
Fixes #14370 : Fixed creating built-in validator in model with same function name
7 years ago
Evgeniy Tkachenko
a55de109aa
Update input-validation.md ( #14514 )
7 years ago
Alexander Makarov
f9121fc2e0
Removed HHVM status from readme since service providing it seems to be down for a while [skip ci]
7 years ago
Alexander Makarov
b1a49a18a7
Fixes #14509 : clarified on when AJAX validation is triggered
7 years ago
Robert Korulczyk
6782ad96f0
Reduce `Segmentation fault` errors for PHP 5.4 tests on travis. ( #14092 )
7 years ago
Robert Korulczyk
462b5f5b50
Use new trusty images on travis ( #14508 )
...
This should fix "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'" errors.
7 years ago
Alexander Makarov
1f26db9fb7
Applied code style fixes
7 years ago
Alexander Makarov
acf29e0001
Fixes #14492 : Fixed error handler not escaping error info debug mode
7 years ago
Dmitry Dorogin
21d2d72534
Fixes #14487 : Changed i18n message error to warning
7 years ago
Sergey Makinen
92d2245ca6
Add support for an older SQLite in constraints ( fixes #14483 ) ( #14497 )
7 years ago
Dmitry Dorogin
6d2e0aff82
Fixes #14406 : Fixed caching rules in `yii\web\UrlManager` with different `ruleConfig` configuration
7 years ago
Carsten Brandt
393fc2744a
Added yii\base\Object for backwards compatibility
...
fixes #7936
close #14478
7 years ago
Carsten Brandt
758f01934f
Make PHPUnit run on PHP 7.2
...
fix PHPUnit at 4.8.34 as the next version breaks our compatibility
Layer:
a55235c033
7 years ago
Carsten Brandt
69673c0c94
Rename Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
Robert Korulczyk
5b2101f14c
Update guide: Object -> BaseObject
...
issue #7936
7 years ago
Carsten Brandt
d4e584f7a7
UPGRADE notes for Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
Alexander Makarov
000192522b
Fixes #14482 : fixed tests incompatibility with PHP 5.4
7 years ago
PowerGamer1
40e242b562
Fixes #14469 : updated RFC links [skip ci]
7 years ago
Nikolay Oleynikov
ea33bbd369
Fix docs of a base file helper ( #14477 ) [skip ci]
7 years ago
Alexander Makarov
d38908fc13
Fixed #14469 : updated RFC links
7 years ago
Alexander Makarov
062e1c7e67
Uppercased HTTP methods as required by RFC [skip ci]
7 years ago
Carsten Brandt
aba0b4a59a
added test that fails #14413
...
See #13979
close #14413
7 years ago
Alex
59002a9e1e
Fixes #6644 : Added `yii\helpers\ArrayHelper::setValue()`
7 years ago
Carsten Brandt
2f9f15bf92
Fixes #14188 : Add constants and function for sysexits(3) to `ConsoleHelper`
7 years ago
Alexander Makarov
0adae899ce
Additional fix for SluggableBehavior immutability after merge of #13449
7 years ago
Boudewijn Vahrmeijer
03d53b785d
Fixes #14449 : Fix PHP 7.2 compatibility bugs and add explicit closure support in `yii\base\Application`
7 years ago
SilverFire - Dmitry Naumenko
b0162d3a48
Revert "Fixes #14294 : Added `InputWidget::renderInput()` to move behavior described in `InputWidget` class docs to the class itself"
...
This reverts commit a5b393a3c1
.
See https://github.com/yiisoft/yii2/pull/14441#issuecomment-315127527 for reasons
7 years ago
Carsten Brandt
a5b393a3c1
Fixes #14294 : Added `InputWidget::renderInput()` to move behavior described in `InputWidget` class docs to the class itself
7 years ago
Robert Korulczyk
2fa4ccc1da
Fix phpdoc for $_master and $_slave properties in yii\db\Connection ( #14447 )
7 years ago
Carsten Brandt
6fa48eab38
Update CHANGELOG for #14206
7 years ago
Dmitry Dorogin
6e223e6db2
Fixes #14423 : Fixed `ArrayHelper::merge` behavior with null values for integer-keyed elements
7 years ago
nikosid
fe607b83d2
Fixes #14434 : fixed metadata cache regression
7 years ago
Carsten Brandt
445019779f
Fixes #14206 : `MySqlMutex`, `PgsqlMutex` and `OracleMutex` now use `useMaster()` to ensure lock is aquired on the same DB server
7 years ago
qihuajun
f5e8a89319
Fix slave usage disabled after Connection::close, set _slave to false instead of nulll
...
fixes #14165
close #14168
7 years ago
Carsten Brandt
c9347b0a57
Fixed ambiguous column error on indexBy with JOIN
...
fixes #13859
close #14431
7 years ago
Carsten Brandt
173108b5b0
Move getTablesUsedInFrom() from ActiveQuery to Query
...
enable this feature on the Query level
close #14431
7 years ago
Carsten Brandt
0070b97837
allow migrate/mark to mark the history base ( #14428 )
...
fixes #7890
7 years ago
Alexander Makarov
5a01c09270
Updated testing docs [skip ci]
7 years ago
yyxx9988
46bf3c410a
Add `yii\web\Request::getOrigin()` method that returns HTTP_ORIGIN of current CORS request
...
>The Origin request header indicates where a fetch originates from. It doesn't include any path information, but only the server name. It is sent with CORS requests, as well as with POST requests. It is similar to the Referer header, but, unlike this header, it doesn't disclose the whole path.
From https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Origin
Working code samples
```php
<?php
// We'll be granting access to only the arunranga.com domain
// which we think is safe to access this resource as application/xml
if($_SERVER['HTTP_ORIGIN'] == "http://arunranga.com ") {
header('Access-Control-Allow-Origin: http://arunranga.com ');
header('Content-type: application/xml');
readfile('arunerDotNetResource.xml');
} else {
header('Content-Type: text/html');
echo "<html>";
echo "<head>";
echo " <title>Another Resource</title>";
echo "</head>";
echo "<body>",
"<p>This resource behaves two-fold:";
echo "<ul>",
"<li>If accessed from <code>http://arunranga.com </code> it returns an XML document</li>";
echo "<li>If accessed from any other origin including from simply typing in the URL into the browser's address bar,";
echo "you get this HTML document</li>",
"</ul>",
"</body>",
"</html>";
}
?>
```
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Server-Side_Access_Control for more info.
close #13835
7 years ago
Jitendra Joshi
2914dbb6aa
Fixes #14427 : ISO-3166 link updated [skip ci]
7 years ago
Carsten Brandt
0559a95db9
Fixed ambiguous column error in `BaseActiveRecord::refresh()`
...
when the query adds a JOIN by default
fixes #13757
7 years ago