Skip to content

Commit 99ee8d4

Browse files
committed
Merge branch 'develop'
2 parents e514fb6 + d7b4dd6 commit 99ee8d4

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

CHANGELOG.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
## [Unreleased]
44

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+
520
## [1.4.2] - 2022-05-20
621

722
- Fix invisible icons by checking for supported icons
@@ -236,8 +251,11 @@ Chart panel improvements:
236251

237252
- Initial public release
238253

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
240255

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
241259
[1.4.2]: https://github.com/daun/processwire-dashboard/releases/tag/v1.4.2
242260
[1.4.1]: https://github.com/daun/processwire-dashboard/releases/tag/v1.4.1
243261
[1.4.0]: https://github.com/daun/processwire-dashboard/releases/tag/v1.4.0

DashboardPanelShortcuts.module

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class DashboardPanelShortcuts extends DashboardPanel
109109
}
110110
}
111111

112-
if ($page && $this->isPageViewable($page)) {
112+
if (is_object($page) && $this->isPageViewable($page)) {
113113
$info = $this->getPageInfo($page);
114114
$title = $title ?? (is_string($key) ? $key : $info->title);
115115
$summary = $summary ?? $info->summary;
@@ -223,7 +223,7 @@ class DashboardPanelShortcuts extends DashboardPanel
223223

224224
protected function isPageViewable($page)
225225
{
226-
if (!$page || !$page->url) {
226+
if (!($page->url ?? null)) {
227227
return false;
228228
}
229229
if (!$this->checkAccess) {

0 commit comments

Comments
 (0)