Browse Source

Fixes #4227: `\yii\widgets\LinkPager::$hideOnSinglePage` is now `true` by default

tags/2.0.0-rc
Alexander Makarov 10 years ago
parent
commit
374b98e2e4
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/widgets/LinkPager.php

1
framework/CHANGELOG.md

@ -169,6 +169,7 @@ Yii Framework 2 Change Log
- Chg #4071: `mail` component renamed to `mailer`, `yii\log\EmailTarget::$mail` renamed to `yii\log\EmailTarget::$mailer` (samdark)
- Chg #4147: `BaseMailer::compose()` will not overwrite the `message` parameter if it is explicitly provided (qiangxue)
- Chg #4201: change default value of `SyslogTarget::facility` from LOG_SYSLOG to LOG_USER (dizews)
- Chg #4227: `\yii\widgets\LinkPager::$hideOnSinglePage` is now `true` by default (samdark)
- Chg: Replaced `clearAll()` and `clearAllAssignments()` in `yii\rbac\ManagerInterface` with `removeAll()`, `removeAllRoles()`, `removeAllPermissions()`, `removeAllRules()` and `removeAllAssignments()` (qiangxue)
- Chg: Added `$user` as the first parameter of `yii\rbac\Rule::execute()` (qiangxue)
- Chg: `yii\grid\DataColumn::getDataCellValue()` visibility is now `public` to allow accessing the value from a GridView directly (cebe)

2
framework/widgets/LinkPager.php

@ -101,7 +101,7 @@ class LinkPager extends Widget
/**
* @var boolean Hide widget when only one page exist. Defaults to `false`.
*/
public $hideOnSinglePage = false;
public $hideOnSinglePage = true;
/**
* Initializes the pager.

Loading…
Cancel
Save