From 10dc60edfa968c87d01b21367b65aebc0afeadce Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Mon, 13 Nov 2017 10:38:03 +0100 Subject: [PATCH] refs #11243 * add SafeMoneyFormat method to ajax controller * display currency of fees at additional account infos --- module/finc/src/finc/Controller/AjaxController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/module/finc/src/finc/Controller/AjaxController.php b/module/finc/src/finc/Controller/AjaxController.php index 53f551a5fe8..258e53f7f26 100644 --- a/module/finc/src/finc/Controller/AjaxController.php +++ b/module/finc/src/finc/Controller/AjaxController.php @@ -27,6 +27,7 @@ */ namespace finc\Controller; use VuFind\Exception\Auth as AuthException; +use VuFind\View\Helper\Root\SafeMoneyFormat; /** * This controller handles global AJAX functionality @@ -266,9 +267,11 @@ class AjaxController extends \VuFind\Controller\AjaxController $patron ); - $additionalAccountInfos['countFines'] = $catalog->getFinesTotal( + $smf = new SafeMoneyFormat(); + $smf->setView($this->getViewRenderer()); + $additionalAccountInfos['countFines'] = $smf($catalog->getFinesTotal( $patron - ); + )); // Done return $this->output($additionalAccountInfos, self::STATUS_OK); -- GitLab