Skip to content

Commit 6a2c79c

Browse files
committed
Merge branch 'master' of github.com:chamilo/chamilo-lms
2 parents 9951b39 + 149cb8b commit 6a2c79c

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

public/main/inc/lib/PortfolioController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3554,7 +3554,7 @@ private function processAttachments(
35543554

35553555
private function itemBelongToOwner(Portfolio $item): bool
35563556
{
3557-
if ($item->getUser()->getId() != $this->owner->getId()) {
3557+
if ($item->getCreator()->getId() != $this->owner->getId()) {
35583558
return false;
35593559
}
35603560

src/CoreBundle/Resources/views/Portfolio/items.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% set visible_img = 'ActionIcon::VISIBLE'|mdi_icon_t(22, 'ch-tool-icon', 'Invisible') %}
44
{% set invisible_img = 'ActionIcon::INVISIBLE'|mdi_icon_t(22, 'ch-tool-icon', 'Visible') %}
55
{% set delete_img = 'ActionIcon::DELETE'|mdi_icon_t(22, 'ch-tool-icon', 'Delete') %}
6-
{% set baseurl = app.request.getPathInfo() ~ '?' ~ (app.request.queryString ? app.request.queryString ~ '&' : '') %}
6+
{% set baseurl = '/main/portfolio/index.php' ~ '?' ~ (app.request.queryString ? app.request.queryString ~ '&' : '') %}
77
{% set is_advanced_sharing_enabled = 'platform.portfolio_advanced_sharing'|api_get_setting and not _c is empty %}
88

99
<section class="portfolio-items">
@@ -138,7 +138,7 @@
138138
<article>
139139
<footer>
140140
{{ 'ToolIcon::FORUM'|mdi_icon(22) }}
141-
<strong>{{ comment.author.completeName }}</strong>
141+
<strong>{{ comment.resourceNode.creator.fullName }}</strong>
142142
<small class="fa fa-clock-o fa-fw text-muted" aria-hidden="true"></small>
143143
<small class="text-muted">{{ comment.date|date_to_time_ago }}</small>
144144
</footer>

src/CoreBundle/Resources/views/Portfolio/list.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% set visible_img = 'ActionIcon::VISIBLE'|mdi_icon_t(22, 'ch-tool-icon', 'Invisible') %}
44
{% set invisible_img = 'ActionIcon::INVISIBLE'|mdi_icon_t(22, 'ch-tool-icon', 'Visible') %}
55
{% set delete_img = 'ActionIcon::DELETE'|mdi_icon_t(22, 'ch-tool-icon', 'Delete') %}
6-
{% set baseurl = _p.web_self ~ '?' ~ (_p.web_cid_query ? _p.web_cid_query ~ '&' : '') %}
6+
{% set baseurl = '/main/portfolio/index.php?' ~ (_p.web_cid_query ? _p.web_cid_query ~ '&' : '') %}
77

88
{% import '@ChamiloCore/Portfolio/items.html.twig' as items %}
99

@@ -148,7 +148,7 @@
148148
149149
{% if course %}
150150
$('form#frm_student_list select[name="user"]').on('change', function (e) {
151-
var newLocation = '{{ _p.web_self ~ '?' ~ _p.web_cid_query }}';
151+
var newLocation = '{{ '/main/portfolio/index.php?' ~ _p.web_cid_query }}';
152152
153153
if (this.value) {
154154
newLocation += '&user=' + this.value;

src/CoreBundle/Twig/Extension/ChamiloExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function getFilters(): array
4949
return [
5050
new TwigFilter('var_dump', 'var_dump'),
5151
new TwigFilter('icon', 'Display::get_icon_path'),
52-
new TwigFilter('mdi_icon', 'Display::getMdiIconSimple'),
53-
new TwigFilter('mdi_icon_t', 'Display::getMdiIconTranslate'),
52+
new TwigFilter('mdi_icon', 'Display::getMdiIconSimple', ['is_safe' => ['html']]),
53+
new TwigFilter('mdi_icon_t', 'Display::getMdiIconTranslate', ['is_safe' => ['html']]),
5454
new TwigFilter('get_lang', 'get_lang'),
5555
new TwigFilter('get_plugin_lang', 'get_plugin_lang'),
5656
new TwigFilter('api_get_local_time', 'api_get_local_time'),

0 commit comments

Comments
 (0)