Skip to content

Commit a41095b

Browse files
committed
Forum: Fix filter in post_title field
1 parent 4a58770 commit a41095b

11 files changed

+21
-20
lines changed

main/forum/forumfunction.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3200,7 +3200,7 @@ function show_add_post_form($current_forum, $action, $form_values = [], $showPre
32003200
}
32013201

32023202
$form->addElement('text', 'post_title', get_lang('Title'));
3203-
$form->applyFilter('post_title', 'post_filter');
3203+
$form->applyFilter('post_title', 'html_filter');
32043204
$form->addHtmlEditor(
32053205
'post_text',
32063206
get_lang('Text'),

src/Chamilo/CoreBundle/Entity/AgendaEventInvitation.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
/**
1414
* @ORM\Table(name="agenda_event_invitation")
1515
* Add @ to the next lineactivating the agenda_collective_invitations configuration setting.
16-
* ORM\Entity()
17-
* ORM\InheritanceType("SINGLE_TABLE")
18-
* ORM\DiscriminatorColumn(name="type", type="string")
19-
* ORM\DiscriminatorMap({
16+
* @ORM\Entity()
17+
* @ORM\InheritanceType("SINGLE_TABLE")
18+
* @ORM\DiscriminatorColumn(name="type", type="string")
19+
* @ORM\DiscriminatorMap({
2020
* "invitation" = "Chamilo\CoreBundle\Entity\AgendaEventInvitation",
2121
* "subscription" = "Chamilo\CoreBundle\Entity\AgendaEventSubscription"
2222
* })
@@ -37,7 +37,8 @@ class AgendaEventInvitation
3737
/**
3838
* @var Collection<int, AgendaEventInvitee>
3939
*
40-
* @ORM\OneToMany(targetEntity="AgendaEventInvitee", mappedBy="invitation", cascade={"persist", "remove"}, orphanRemoval=true)
40+
* @ORM\OneToMany(targetEntity="AgendaEventInvitee", mappedBy="invitation", cascade={"persist", "remove"},
41+
* orphanRemoval=true)
4142
*/
4243
protected $invitees;
4344

src/Chamilo/CoreBundle/Entity/AgendaEventInvitee.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
/**
1212
* @ORM\Table(name="agenda_event_invitee")
1313
* Add @ to the next lineactivating the agenda_collective_invitations configuration setting.
14-
* ORM\Entity()
15-
* ORM\InheritanceType("SINGLE_TABLE")
16-
* ORM\DiscriminatorColumn(name="type", type="string")
17-
* ORM\DiscriminatorMap({
14+
* @ORM\Entity()
15+
* @ORM\InheritanceType("SINGLE_TABLE")
16+
* @ORM\DiscriminatorColumn(name="type", type="string")
17+
* @ORM\DiscriminatorMap({
1818
* "invitee" = "Chamilo\CoreBundle\Entity\AgendaEventInvitee",
1919
* "subscriber" = "Chamilo\CoreBundle\Entity\AgendaEventSubscriber"
2020
* })

src/Chamilo/CoreBundle/Entity/AgendaEventSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
/**
10-
* ORM\Entity()
10+
* @ORM\Entity()
1111
*/
1212
class AgendaEventSubscriber extends AgendaEventInvitee
1313
{

src/Chamilo/CoreBundle/Entity/AgendaEventSubscription.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Doctrine\ORM\Mapping as ORM;
88

99
/**
10-
* ORM\Entity()
10+
* @ORM\Entity()
1111
*/
1212
class AgendaEventSubscription extends AgendaEventInvitation
1313
{

src/Chamilo/CoreBundle/Entity/PersonalAgenda.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
class PersonalAgenda
1818
{
1919
// Uncomment next line when activating the agenda_collective_invitations configuration setting.
20-
//use EventCollectiveTrait;
20+
use EventCollectiveTrait;
2121
// Uncomment next line when activating the agenda_event_subscriptions configuration setting.
22-
//use EventSubscribableTrait;
22+
use EventSubscribableTrait;
2323

2424
/**
2525
* @var int

src/Chamilo/CoreBundle/Entity/Portfolio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* }
2525
* )
2626
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
27-
* ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioRepository")
27+
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioRepository")
2828
*/
2929
class Portfolio
3030
{

src/Chamilo/CoreBundle/Entity/PortfolioAttachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*
1414
* @ORM\Table(name="portfolio_attachment")
1515
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
16-
* ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioAttachmentRepository")
16+
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioAttachmentRepository")
1717
*/
1818
class PortfolioAttachment
1919
{

src/Chamilo/CoreBundle/Entity/PortfolioCategory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* }
2121
* )
2222
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
23-
* ORM\Entity()
23+
* @ORM\Entity()
2424
*/
2525
class PortfolioCategory
2626
{
@@ -65,7 +65,7 @@ class PortfolioCategory
6565
/**
6666
* @var int
6767
*
68-
* @ORM\Column(name="parent_id", type="integer")
68+
* @ORM\Column(name="parent_id", type="integer", nullable=false, options={"default": 0})
6969
*/
7070
protected $parentId = 0;
7171

src/Chamilo/CoreBundle/Entity/PortfolioComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @Gedmo\Tree(type="nested")
1919
* @ORM\Table(name="portfolio_comment")
2020
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
21-
* ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioCommentRepository")
21+
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioCommentRepository")
2222
*/
2323
class PortfolioComment
2424
{

0 commit comments

Comments
 (0)