Permalink
Browse files

Fixed issue #13008: SPSS export invalid A0 for string

  • Loading branch information...
Shnoulle committed Dec 16, 2017
1 parent d75a7e9 commit 8ad0150b7a1e23ea6ade6110925eb7c8c30a7e9d
Showing with 2 additions and 2 deletions.
  1. +2 −2 application/helpers/export_helper.php
@@ -2110,8 +2110,8 @@ function stringSize($sColumn)
->order("{$lengthWord}(".Yii::app()->db->quoteColumnName($sColumn).") DESC")
->limit(1)
->queryScalar();
return (int)$lengthReal;
// PSPP didn't accept A0 then min value to 1
return max(1,(int)$lengthReal);
}
/**
* Find the numeric size according DB size for existing question for SPSS export

0 comments on commit 8ad0150

Please sign in to comment.