File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## [ Unreleased]
4
4
5
+ ## [ 1.5.2] - 2022-09-20
6
+
7
+ - Fix notice when adding shortcut URLs as strings
8
+
9
+ ## [ 1.5.1] - 2022-09-03
10
+
11
+ - Confirm before trashing pages in collection panel
12
+ - Avoid overflowing shortcut titles
13
+ - Add default color variables for third-party plugins
14
+
15
+ ## [ 1.5.0] - 2022-09-02
16
+
17
+ - Add new panel size micro (@netcarver )
18
+ - Allow publishing & hiding pages in collection panel by using special column names
19
+
5
20
## [ 1.4.2] - 2022-05-20
6
21
7
22
- Fix invisible icons by checking for supported icons
@@ -236,8 +251,11 @@ Chart panel improvements:
236
251
237
252
- Initial public release
238
253
239
- [ Unreleased ] : https://github.com/daun/processwire-dashboard/compare/v1.4 .2...HEAD
254
+ [ Unreleased ] : https://github.com/daun/processwire-dashboard/compare/v1.5 .2...HEAD
240
255
256
+ [ 1.5.2 ] : https://github.com/daun/processwire-dashboard/releases/tag/v1.5.2
257
+ [ 1.5.1 ] : https://github.com/daun/processwire-dashboard/releases/tag/v1.5.1
258
+ [ 1.5.0 ] : https://github.com/daun/processwire-dashboard/releases/tag/v1.5.0
241
259
[ 1.4.2 ] : https://github.com/daun/processwire-dashboard/releases/tag/v1.4.2
242
260
[ 1.4.1 ] : https://github.com/daun/processwire-dashboard/releases/tag/v1.4.1
243
261
[ 1.4.0 ] : https://github.com/daun/processwire-dashboard/releases/tag/v1.4.0
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ class DashboardPanelShortcuts extends DashboardPanel
109
109
}
110
110
}
111
111
112
- if ($page && $this->isPageViewable($page)) {
112
+ if (is_object( $page) && $this->isPageViewable($page)) {
113
113
$info = $this->getPageInfo($page);
114
114
$title = $title ?? (is_string($key) ? $key : $info->title);
115
115
$summary = $summary ?? $info->summary;
@@ -223,7 +223,7 @@ class DashboardPanelShortcuts extends DashboardPanel
223
223
224
224
protected function isPageViewable($page)
225
225
{
226
- if (!$page || !$page ->url) {
226
+ if (!( $page->url ?? null) ) {
227
227
return false;
228
228
}
229
229
if (!$this->checkAccess) {
You can’t perform that action at this time.
0 commit comments