diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-15 11:12:25 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-15 11:13:54 +0200 |
commit | 3ed05f87695473e667a2e3bc9b2aa17c28d5342f (patch) | |
tree | 127aa2297612f30fb2bec2d14fd1035f7fa2e622 /lib/private/Notification | |
parent | f3124b5052c0fd8647f816a91b6d250c2570279c (diff) | |
download | nextcloud-server-3ed05f87695473e667a2e3bc9b2aa17c28d5342f.tar.gz nextcloud-server-3ed05f87695473e667a2e3bc9b2aa17c28d5342f.zip |
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; } |