diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-08-17 19:31:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 19:31:14 +0200 |
commit | fe80bb1aff2732bd355ca249d706690c3b4ce386 (patch) | |
tree | e35afb993f0c8d5f90c5d57675273f65dd6446f2 /lib/private/Notification | |
parent | ec4d127e58ffae125887d13d6183a08749b9e7b8 (diff) | |
parent | 3ed05f87695473e667a2e3bc9b2aa17c28d5342f (diff) | |
download | nextcloud-server-fe80bb1aff2732bd355ca249d706690c3b4ce386.tar.gz nextcloud-server-fe80bb1aff2732bd355ca249d706690c3b4ce386.zip |
Merge pull request #867 from nextcloud/notification-primary-action-always-first
Make sure the primary action is always the first one
Diffstat (limited to 'lib/private/Notification')
-rw-r--r-- | lib/private/Notification/Notification.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/Notification/Notification.php b/lib/private/Notification/Notification.php index 62a48f434fe..9b5877a3058 100644 --- a/lib/private/Notification/Notification.php +++ b/lib/private/Notification/Notification.php @@ -397,9 +397,13 @@ class Notification implements INotification { } $this->hasPrimaryParsedAction = true; + + // Make sure the primary action is always the first one + array_unshift($this->actionsParsed, $action); + } else { + $this->actionsParsed[] = $action; } - $this->actionsParsed[] = $action; return $this; } |