Minor: Flint fixes

pull/4022/head
Angel Fernando Quiroz Campos 4 years ago
parent cff14cfbd0
commit bd8f533fa9
  1. 1
      main/gradebook/lib/GradebookUtils.php
  2. 3
      main/inc/lib/PortfolioController.php
  3. 6
      src/Chamilo/CoreBundle/Entity/PortfolioCategory.php

@ -1733,6 +1733,7 @@ class GradebookUtils
$imgSrcPdf = Display::return_icon('pdf.png', '', [], ICON_SIZE_MEDIUM, false, true);
$urlDownload = api_get_path(WEB_CODE_PATH).'gradebook/gradebook_display_certificate.php?'.api_get_cidreq().'&action=download_all_certificates&catId='.$categoryId;
return "<script>
$(function () {
var \$btnExport = $('$buttonSelector'),

@ -2478,6 +2478,7 @@ class PortfolioController
if (isset($parentId)) {
$categoriesCriteria['parentId'] = $parentId;
}
return $this->em
->getRepository(PortfolioCategory::class)
->findBy($categoriesCriteria);
@ -2921,6 +2922,7 @@ class PortfolioController
* It parsers a title for a variable in lang.
*
* @param $defaultDisplayText
*
* @return string
*/
private function getLanguageVariable($defaultDisplayText)
@ -2936,6 +2938,7 @@ class PortfolioController
* It translates the text as parameter.
*
* @param $defaultDisplayText
*
* @return mixed
*/
private function translateDisplayName($defaultDisplayText)

@ -217,9 +217,7 @@ class PortfolioCategory
}
/**
* Set parent id
*
* @param int $parentId
* Set parent id.
*
* @return PortfolioCategory
*/
@ -230,8 +228,6 @@ class PortfolioCategory
return $this;
}
/**
* Get items.
*

Loading…
Cancel
Save