Hesam Khaki
5569eaae06
Fixes #9314 : Fixed `yii\rbac\DbManager::getPermissionsByUser()` not returning permissions directly assigned to a user
9 years ago
Alexander Makarov
fbce0c0450
Fixes #9591 : Fixed `yii.validation.js` code so it is compressable by YUICompressor
9 years ago
Carsten Brandt
5a069d1a3c
Fixed inappropriate error response on invalid JSON request
...
Current API responds to invalid JSON with:
```json
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
...
{"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400,"previous":{"name":"Internal Server Error","message":"There was an error at the server.","code":0,"status":500}}
```
While it should be
```json
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
...
{"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400}
```
9 years ago
AIZAWA, Hina
0f2a77ed36
Fixes #9442 : Fixed `yii\db\Migration::renameTable()` caused fatal error when using SQLite driver
9 years ago
Carsten Brandt
60af9d07fb
proper fix and changelog for #9108
...
close #9437
fixes #9108
9 years ago
Carsten Brandt
8fb1b56e34
Update CHANGELOG.md
9 years ago
Carsten Brandt
34d5b45b35
proper fix for #8844 , convert array before using it
...
fixes #9415
9 years ago
Alexander Makarov
43918f2ef6
Fixes #9411 : `DetailView` now automatically sets container tag ID in case it's not specified
9 years ago
Alexander Kochetov
223b0bea5d
Fixes #9369 : `Yii::$app->user->can()` now returns `false` instead of erroring in case `authManager` component is not configured
9 years ago
Klimov Paul
16e1e8fe28
Fallback for objects at `yii\helpers\VarDumper::export()` advanced
9 years ago
Carsten Brandt
2ff5997b69
prepare for next release
9 years ago
Carsten Brandt
89eb3dff14
prepare for release 2.0.6
9 years ago
Carsten Brandt
e1ea227e6d
improved console helper progressbar ETA
...
update only once per second to avoid flapping
9 years ago
Alexander Makarov
ca2c1df067
Minor changelog typo fixes
9 years ago
Carsten Brandt
681db52ba6
refactored SchemaBuilder
...
- rename class to ColumnSchemaBuilder as this is more appropriate
- changed internal organisation to match how the rest of schema related classes work
- the ColumnSchemaBuilder is now created the same way as QueryBuilder is
- removed static call magic and method annotations, now real methods are called as they are
- the whole code works on objects in a db context now instead of setting database connection in global state
- trait is now used by Migration by default but can be used in other contexts as well
Migration usage is now as follows:
```php
$this->createTable('example_table', [
'id' => $this->primaryKey(),
'name' => $this->string(64)->notNull(),
'type' => $this->integer()->notNull()->defaultValue(10),
'description' => $this->text(),
'rule_name' => $this->string(64),
'data' => $this->text(),
'created_at' => $this->datetime()->notNull(),
'updated_at' => $this->datetime(),
]);
```
9 years ago
kidol
bf8eb490a1
Fixes PageCache not setting any duration and dependency when caching response data
...
close #9076
9 years ago
Carsten Brandt
854e186210
fixed caching issue with UrlManager::createUrl
...
this fix will skip the cache in case we encounter a situation which can
not easily be cached.
fixes #9091
9 years ago
Lorenzo Milesi
a6fc02345e
FileValidator->getSizeLimit: check also php's post_max_size
...
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP
close #8373
9 years ago
Carsten Brandt
0575a710c0
CHANGELOG for #8551
...
see also #5780
9 years ago
Nikola Kovacs
11de09bf8b
Fixes #5991 , #5420 , #3017 : Added `updateMessages()` to `yii.activeForm.js` to support manually updating ActiveForm messages
9 years ago
Alexander Makarov
6f4282f05e
Moved #7259 changelog to 2.0.6
9 years ago
Nikola Kovacs
2577a5915b
Fixes #7259 : Added `errorAttributes` parameter to ActiveForm `afterValidate` event. Made scrolling to first error optional
9 years ago
Petra Barus
2261db0a5f
Adding callback for custom hash generation in AssetManager.
9 years ago
Alexander Makarov
863e785ed4
Added changelog for #9263
9 years ago
Alexander Makarov
afbc515407
Fixes #9239 : BaseJson phpdoc corrections, minor improvements, added changelog
9 years ago
Alexander Makarov
310f9152e1
Fixes #9268 : Improved display of boolean parameters in logged SQL queries
9 years ago
Alexander Makarov
972165ccec
Fixes #9006 : Fixed bit column always returning true using certain version of PDO MySQL
9 years ago
Alexander Makarov
9a87271abf
Fixed missing stacktrace items on PHP syntax errors of "unexpected end of file" type
9 years ago
Chris Harris
26e5b021a8
Fixes #9246 : Added `yii\web\UrlRule::getParamRules()`
9 years ago
adinata
8ced2ba96a
Fixes #8933 : Yii is now able to properly handle HHVM fatal errors
9 years ago
vbelogai
1d6a340534
Fixes #8161 : Fixed active form `data-method` submit bug when client validation is used
9 years ago
Dmitry Naumenko
b16d734c29
Fixes #8671 : Extracted `yii\helpers\Html::escapeJsRegularExpression()` method from `yii\validators\RegularExpressionValidator`
9 years ago
nidgetgod
b8fefe513c
fixed: Oracle 11g 11.2.0.1.0 ORA-03113: end-of-file on communication channel
...
This is a workaround for an oracle bug:
https://code.google.com/p/yii/issues/detail?id=1779
close #8844
9 years ago
Carsten Brandt
3c9c6b5d7d
fixed formatter to accept explicit setting of decimal numbers
...
this version keeps BC for symbols while fixing the issue with decimals.
fixes #8684
9 years ago
Carsten Brandt
2cd4837f41
fixed display issue with overlapping text in callstack item
...
fixes #4763
9 years ago
Vit S
9b978ec787
update changelog (issue #9198 )
9 years ago
Klimov Paul
984afd3c6e
`yii\web\ErrorAction` displays 404 error instead of blank page on direct access
9 years ago
Andrey Nester
716057ed39
Fixes #9059 : Fixed PHP Notice in error handler view
9 years ago
freezy
6a4436f95b
[ Fixes #9177 ] Password Hash Cost setting for Security component
9 years ago
webdevsega
da73a0fa47
Set cache to runtime folder for HTMLPurifier_Lexer
9 years ago
Adrian Dvergsdal
2c995ce86e
Add translation for nb-NO (Norwegian Bokmål)
9 years ago
zetamen
df6f270a0e
Fixes #9161 : Fixed `yii\web\Request` ignore `queryParams` when resolve request
9 years ago
Alexander Pletnev
91eae2fe45
changelog
9 years ago
Sitawit Suteepohnwiroj
5af6105ea7
Fixes #9127 , Fixes #9128 : Fixed MSSQL `QueryBuilder::renameColumn()` and `QueryBuilder::renameTable()` escaping
9 years ago
Carsten Brandt
a5c92eb4cb
register `STDIN`, `STDOUT`, and `STDERR` if not defined by PHP
...
this ensures that they are defined if needed and reduces redundant
code in the entry script.
close #6853
9 years ago
Carsten Brandt
4381f7c175
Update CHANGELOG.md
...
fixed style
9 years ago
Carsten Brandt
bf7edc5250
2.0.5 release
9 years ago
Alexander Makarov
4e3b82bb25
Fixed `ViewAction::resolveViewName()` not to accept `/../` and `/./`
...
Fixes #9070 (CVE-2015-5467)
9 years ago
Sebastian Thierer
e0d2107e1b
Mysql unique index creation fix.
9 years ago
Alexander Makarov
aaf931a5e8
Fixes #9070 : Fixed `ViewAction::resolveViewName()` not to accept `/../` and `/./`
9 years ago