ItSpiderman has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/372839 )

Change subject: Statistics: Fix for NaN error on list
......................................................................

Statistics: Fix for NaN error on list

Type of column in list view was set as "int" even if only one member is
 integer.

 ERM: #7260

Change-Id: I1473ff92fff96c69f52cc6ead16f8aee5b872764
---
M Statistics/includes/api/BSApiStatisticsTasks.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/39/372839/1

diff --git a/Statistics/includes/api/BSApiStatisticsTasks.php 
b/Statistics/includes/api/BSApiStatisticsTasks.php
index a47c73c..3ecec47 100644
--- a/Statistics/includes/api/BSApiStatisticsTasks.php
+++ b/Statistics/includes/api/BSApiStatisticsTasks.php
@@ -187,6 +187,8 @@
                                for( $i = 0; $i < count( $aData ); $i++ ) {
                                        if( $this->isInt( $aData[ $i ] ) ) {
                                                $aTypes[ $aFields[ $i ][ 'name' 
] ][] = 'int';
+                                       } else {
+                                               $aTypes[ $aFields[ $i ][ 'name' 
] ][] = 'string';
                                        }
                                        $aItem[ $aFields[ $i ][ 'name' ] ] = 
$aData[ $i ];
                                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1473ff92fff96c69f52cc6ead16f8aee5b872764
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: ItSpiderman <[email protected]>

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

Reply via email to