Werdna has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/94072


Change subject: Further history backwards compatibility
......................................................................

Further history backwards compatibility

Ensure that aliased history types are handled correctly

Change-Id: I3d85062031219f042f9957ccb83bae84abf1d641
---
M includes/View/History/HistoryRecord.php
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/72/94072/1

diff --git a/includes/View/History/HistoryRecord.php 
b/includes/View/History/HistoryRecord.php
index 76cd4e6..b8974f0 100644
--- a/includes/View/History/HistoryRecord.php
+++ b/includes/View/History/HistoryRecord.php
@@ -46,6 +46,11 @@
         * @return array|bool Array of action details or false if invalid
         */
        protected function getActionDetails( $action ) {
+               // Backwards-compatibility handling
+               if ( !is_array( $this->getActions()->getValue( $action ) ) ) {
+                       $action = $this->getActions()->getValue( $action );
+               }
+
                $details = $this->getActions()->getValue( $action, 'history' );
 
                if ( $details === null ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/94072
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3d85062031219f042f9957ccb83bae84abf1d641
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Werdna <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to