Skip to content

Commit

Permalink
Merge c80e201 into 3346430
Browse files Browse the repository at this point in the history
  • Loading branch information
akagane99 committed May 4, 2019
2 parents 3346430 + c80e201 commit 9d488a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Model/QuestionnaireAnswerSummaryCsv.php
Expand Up @@ -13,6 +13,7 @@
*/

App::uses('QuestionnairesAppModel', 'Questionnaires.Model');
App::uses('NetCommonsTime', 'NetCommons.Utility');

/**
* Summary for QuestionnaireAnswerSummary Model
Expand Down Expand Up @@ -185,7 +186,12 @@ public function getAnswerSummaryCsv($questionnaire, $limit, $offset) {
)
)
));
$retArray[] = $this->_getRows($questionnaire, $summary, $answers);
//$retArray[] = $this->_getRows($questionnaire, $summary, $answers);
//回答日時は固定で1なので
$retArray[] = (new NetCommonsTime())->toUserDatetimeArray(
$this->_getRows($questionnaire, $summary, $answers),
array('1')
);
}

return $retArray;
Expand Down
Expand Up @@ -64,8 +64,8 @@ private function __getData($isPost) {
'QuestionnaireSetting' => array(
'id' => 2,
'block_key' => 'block_2',
'use_workflow' => true,
'approval_type' => true,
'use_workflow' => '1',
'approval_type' => '1',
)
);
} else {
Expand Down

0 comments on commit 9d488a2

Please sign in to comment.