Skip to content

Commit

Permalink
Forum: Fix filter in post_title field
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Apr 18, 2023
1 parent 4a58770 commit a41095b
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion main/forum/forumfunction.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -3200,7 +3200,7 @@ function show_add_post_form($current_forum, $action, $form_values = [], $showPre
}

$form->addElement('text', 'post_title', get_lang('Title'));
$form->applyFilter('post_title', 'post_filter');
$form->applyFilter('post_title', 'html_filter');
$form->addHtmlEditor(
'post_text',
get_lang('Text'),
Expand Down
11 changes: 6 additions & 5 deletions src/Chamilo/CoreBundle/Entity/AgendaEventInvitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
/**
* @ORM\Table(name="agenda_event_invitation")
* Add @ to the next lineactivating the agenda_collective_invitations configuration setting.
* ORM\Entity()
* ORM\InheritanceType("SINGLE_TABLE")
* ORM\DiscriminatorColumn(name="type", type="string")
* ORM\DiscriminatorMap({
* @ORM\Entity()
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="type", type="string")
* @ORM\DiscriminatorMap({
* "invitation" = "Chamilo\CoreBundle\Entity\AgendaEventInvitation",
* "subscription" = "Chamilo\CoreBundle\Entity\AgendaEventSubscription"
* })
Expand All @@ -37,7 +37,8 @@ class AgendaEventInvitation
/**
* @var Collection<int, AgendaEventInvitee>
*
* @ORM\OneToMany(targetEntity="AgendaEventInvitee", mappedBy="invitation", cascade={"persist", "remove"}, orphanRemoval=true)
* @ORM\OneToMany(targetEntity="AgendaEventInvitee", mappedBy="invitation", cascade={"persist", "remove"},
* orphanRemoval=true)
*/
protected $invitees;

Expand Down
8 changes: 4 additions & 4 deletions src/Chamilo/CoreBundle/Entity/AgendaEventInvitee.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
/**
* @ORM\Table(name="agenda_event_invitee")
* Add @ to the next lineactivating the agenda_collective_invitations configuration setting.
* ORM\Entity()
* ORM\InheritanceType("SINGLE_TABLE")
* ORM\DiscriminatorColumn(name="type", type="string")
* ORM\DiscriminatorMap({
* @ORM\Entity()
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="type", type="string")
* @ORM\DiscriminatorMap({
* "invitee" = "Chamilo\CoreBundle\Entity\AgendaEventInvitee",
* "subscriber" = "Chamilo\CoreBundle\Entity\AgendaEventSubscriber"
* })
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/AgendaEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\ORM\Mapping as ORM;

/**
* ORM\Entity()
* @ORM\Entity()
*/
class AgendaEventSubscriber extends AgendaEventInvitee
{
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/AgendaEventSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Doctrine\ORM\Mapping as ORM;

/**
* ORM\Entity()
* @ORM\Entity()
*/
class AgendaEventSubscription extends AgendaEventInvitation
{
Expand Down
4 changes: 2 additions & 2 deletions src/Chamilo/CoreBundle/Entity/PersonalAgenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
class PersonalAgenda
{
// Uncomment next line when activating the agenda_collective_invitations configuration setting.
//use EventCollectiveTrait;
use EventCollectiveTrait;
// Uncomment next line when activating the agenda_event_subscriptions configuration setting.
//use EventSubscribableTrait;
use EventSubscribableTrait;

/**
* @var int
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/Portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* }
* )
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
* ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioRepository")
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioRepository")
*/
class Portfolio
{
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/PortfolioAttachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @ORM\Table(name="portfolio_attachment")
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
* ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioAttachmentRepository")
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioAttachmentRepository")
*/
class PortfolioAttachment
{
Expand Down
4 changes: 2 additions & 2 deletions src/Chamilo/CoreBundle/Entity/PortfolioCategory.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* }
* )
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
* ORM\Entity()
* @ORM\Entity()
*/
class PortfolioCategory
{
Expand Down Expand Up @@ -65,7 +65,7 @@ class PortfolioCategory
/**
* @var int
*
* @ORM\Column(name="parent_id", type="integer")
* @ORM\Column(name="parent_id", type="integer", nullable=false, options={"default": 0})
*/
protected $parentId = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/PortfolioComment.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @Gedmo\Tree(type="nested")
* @ORM\Table(name="portfolio_comment")
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
* ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioCommentRepository")
* @ORM\Entity(repositoryClass="Chamilo\CoreBundle\Entity\Repository\PortfolioCommentRepository")
*/
class PortfolioComment
{
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/PortfolioRelTag.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/**
* @ORM\Table(name="portfolio_rel_tag")
* ORM\Entity()
* @ORM\Entity()
*/
class PortfolioRelTag
{
Expand Down

0 comments on commit a41095b

Please sign in to comment.