Commit Graph

5038 Commits

Author SHA1 Message Date
Qiang Xue
875e2c3acb Fixes #4395: Added $checkAjax parameter to yii\web\Response::redirect() to support default redirection behavior for AJAX/PJAX requests 2014-12-03 10:07:09 -05:00
Qiang Xue
97e4813929 Fixes #5070: Gii controller generator should use controller class name instead of controller ID to specify new controller 2014-12-03 09:52:56 -05:00
Carsten Brandt
379319d144 updated german translation 2014-12-03 14:32:41 +01:00
Carsten Brandt
6e7dc26b38 added support for DateTimeImmutable to Formatter
fixes #5503
2014-12-02 04:23:26 +01:00
Nikola Basic
95586f243c Fixed docblock for htmlEncode and htmlDecode [skip ci] 2014-12-01 11:47:39 +01:00
Carsten Brandt
073982ab0a Update BaseActiveRecord.php
The exceptions thrown on error are db exceptions.
2014-11-30 21:02:43 +01:00
Carsten Brandt
58becaceab suppress warning thrown by IntlDateFormatter::parse()
Works around PHP Bug https://bugs.php.net/bug.php?id=68528

fixes #5962
2014-11-30 17:56:23 +01:00
Qiang Xue
544981a41c Fixes #6318: Made widgets more error-tolerant and user-friendly when certain option values are null 2014-11-29 21:29:53 -05:00
Qiang Xue
83b0b3d480 Fixes #6311: Optimistic lock for ActiveRecord does not work as expected 2014-11-29 20:10:53 -05:00
Carsten Brandt
a52e1ac53c fixed wrong CHANGELOG entries
introduced by @samdark in the following commits:

- c6b0e24a45
- 7c5938f902
- eaf8ece568
2014-11-29 14:39:43 +01:00
Emad Ghasemi
e093e77027 Update yii.php
Added relative time translations
2014-11-29 03:07:21 +03:30
Alexander Makarov
c6b0e24a45 Fixes #6305: yii\i18n\Formatter::asParagraphs() was not unicode-aware 2014-11-29 01:29:15 +03:00
Alexander Makarov
9e42285f61 Reverted #3305 2014-11-28 17:13:52 +03:00
Carsten Brandt
ae1bd39377 adjusted missing return for fix #6263 2014-11-28 06:30:11 +01:00
Qiang Xue
9ae538e602 Fixed doc [skip ci] 2014-11-27 22:03:31 -05:00
Qiang Xue
0c599b1ee1 Fixes #5480: Added defensive code to yii\web\User::getIdentity() to avoid potential infinite recursion 2014-11-27 21:55:28 -05:00
Alexander Makarov
19af264530 Enh: yii fixture command now offers help if no arguments are provided instead of crashing 2014-11-28 00:32:38 +03:00
Carsten Brandt
7325fdd7ed better fix for #5448 not using customized DateTime class
fixes #6263 and has no problem with PHP Bug:

> it is a PHP bug: https://bugs.php.net/bug.php?id=45543
> Fixed in this commit: php/php-src@22dba2f#diff-7b738accc3d60f74c259da18588ddc5dL2996
>
> Fixed in PHP >5.4.26 and >5.5.10. http://3v4l.org/mlZX7
2014-11-27 21:55:33 +01:00
Alexander Makarov
ebdd56f0db Changed #4277 behavior 2014-11-27 20:42:31 +03:00
Carsten Brandt
8b79293ff2 added missing @since annotations 2014-11-27 18:11:14 +01:00
Alexander Makarov
7b20bdeeb2 Fixes #6279: yii\db\Schema::getLastInsertID() was passing wrong default schema name to PDO 2014-11-27 16:51:29 +03:00
Alexander Makarov
af50f5a290 Fixes #4277: yii\grid\GridView is no longer throwing an exception in non-debug mode when results are empty and columns aren't defined 2014-11-27 13:47:40 +03:00
Alexander Makarov
5d7b70da5f Adjusted #3305: MigrateController::refreshSchema() is no more called automatically 2014-11-27 11:54:30 +03:00
Alexander Makarov
7c5938f902 #4791: Added more colors to yii migrate command 2014-11-27 04:03:33 +03:00
Alexander Makarov
3c70d3c317 Fixes #3305: yii migrate now automatically flushes DB schema cache after successful migration 2014-11-27 03:38:25 +03:00
Alexander Makarov
eaf8ece568 Fixes #5627: Added yii cache/flush-schema console command to flush DB schema cache of a given database connection 2014-11-27 03:06:24 +03:00
wenbin1989
402d58cfd8 Fixes #6081: yii\rbac\DbManager::getChildren() was not quoting column name properly 2014-11-27 00:28:55 +03:00
Alexander Makarov
de8adda565 Fixes #5748: Smarty {path was generating absolute URLs instead of relative ones 2014-11-27 00:16:26 +03:00
Alexander Makarov
c2ef433ef9 Fixes #4146: Added yii\bootstrap\ButtonDropdown::$containerOptions 2014-11-26 23:41:36 +03:00
Alexander Makarov
e6450be665 Fixes #6150: yii\bootstrap\Tabs dropdown IDs were generated incorrectly 2014-11-26 22:22:53 +03:00
Andrey Grachov
25a7c84ef2 Fixes #6271: Query caching returns the same data when running the same SQL with different fetch modes 2014-11-26 11:10:55 -05:00
Qiang Xue
2a0797dd23 Fixes #6266: Clicking on reset button does not hide error summary when using ActiveForm 2014-11-26 11:06:26 -05:00
Qiang Xue
f509ed2448 Fixes #6236: No JS scripts should be registered when yii\widgets\ActiveForm::enableClientScript is false 2014-11-26 10:52:10 -05:00
Carsten Brandt
8ca18e4c43 Merge pull request #6178 from yiisoft/date-timezone-issue
[WIP] first draft of a fix for #5448
2014-11-26 03:05:39 +01:00
Carsten Brandt
4bc487ecbd fixed typos 2014-11-26 02:00:50 +01:00
Carsten Brandt
6a8f4b0e50 fixed date formatter to display date-only values correctly
fixes #5448
2014-11-26 01:54:58 +01:00
Qiang Xue
87c002d5b3 Fixes #6207: Added support for truncating HTML strings using StringHelper::truncate() and StringHelper::truncateWords() 2014-11-25 07:29:27 -05:00
Alex-Code
562417c572 truncate and truncateWords can now preserve HTML
new private method `truncateHtml` now used by `truncate` and `truncateWords`
2014-11-25 07:19:43 -05:00
Qiang Xue
33955a9e90 yii\web\AssetManager should not publish disabled asset bundles 2014-11-24 23:21:36 -05:00
Qiang Xue
38c04b3d89 Fixes #6189 2014-11-23 20:56:33 -05:00
Alexander Makarov
fce99c874e Fixes #5504: Added note to yii\console\CacheController explaining that cache components should be configured in console app configuration in order to be cleared 2014-11-23 21:56:23 +03:00
Carsten Brandt
c2d814cc3a first draft of a fix for #5448
only method stubs so far
2014-11-23 02:33:06 +01:00
Carsten Brandt
d44c23bb00 ported fix for #6164 to sphinx
was already supported for BETWEEN but not for LIKE

fixes #6164
2014-11-23 01:54:33 +01:00
Carsten Brandt
cc8ffe364e added support for yii\db\Expression to querybuilder BETWEEN and LIKE
fixes #6164
2014-11-23 01:41:15 +01:00
Qiang Xue
280dd1651d Fixes #6172: yii\rbac\DbManager should properly quote table and column names 2014-11-22 18:25:02 -05:00
Alexander Makarov
04b802babe Merge pull request #6168 from mongosoft/fixes
[ci skip] Typo in word
2014-11-22 03:02:33 +03:00
Alexander Mohorev
e92482f554 Typo in word 2014-11-22 02:58:56 +03:00
Alexander Makarov
d1f72be5fc Used echo instead of stdout not to cluttter tests 2014-11-22 02:47:02 +03:00
Alexander Makarov
e88a5d9cc4 Fixes #4823 and #6005: yii message accuracy and error handling were improved by using PHP tokenizer instead of regular expressions. Removed eval() as well. 2014-11-22 02:33:02 +03:00
Alexander Makarov
fb2dff8528 Fixes #6107 and #6112: yii message was emptying existing translations and incorrectly writing not yet translated strings in .po in case of multiple categories 2014-11-21 20:19:32 +03:00