Forum: Fix filter in post_title field

pull/4686/head
Angel Fernando Quiroz Campos 3 years ago
parent 4a587707b0
commit a41095b764
  1. 2
      main/forum/forumfunction.inc.php
  2. 11
      src/Chamilo/CoreBundle/Entity/AgendaEventInvitation.php
  3. 8
      src/Chamilo/CoreBundle/Entity/AgendaEventInvitee.php
  4. 2
      src/Chamilo/CoreBundle/Entity/AgendaEventSubscriber.php
  5. 2
      src/Chamilo/CoreBundle/Entity/AgendaEventSubscription.php
  6. 4
      src/Chamilo/CoreBundle/Entity/PersonalAgenda.php
  7. 2
      src/Chamilo/CoreBundle/Entity/Portfolio.php
  8. 2
      src/Chamilo/CoreBundle/Entity/PortfolioAttachment.php
  9. 4
      src/Chamilo/CoreBundle/Entity/PortfolioCategory.php
  10. 2
      src/Chamilo/CoreBundle/Entity/PortfolioComment.php
  11. 2
      src/Chamilo/CoreBundle/Entity/PortfolioRelTag.php

@ -3200,7 +3200,7 @@ function show_add_post_form($current_forum, $action, $form_values = [], $showPre
} }
$form->addElement('text', 'post_title', get_lang('Title')); $form->addElement('text', 'post_title', get_lang('Title'));
$form->applyFilter('post_title', 'post_filter'); $form->applyFilter('post_title', 'html_filter');
$form->addHtmlEditor( $form->addHtmlEditor(
'post_text', 'post_text',
get_lang('Text'), get_lang('Text'),

@ -13,10 +13,10 @@ use Doctrine\ORM\Mapping as ORM;
/** /**
* @ORM\Table(name="agenda_event_invitation") * @ORM\Table(name="agenda_event_invitation")
* Add @ to the next lineactivating the agenda_collective_invitations configuration setting. * Add @ to the next lineactivating the agenda_collective_invitations configuration setting.
* ORM\Entity() * @ORM\Entity()
* ORM\InheritanceType("SINGLE_TABLE") * @ORM\InheritanceType("SINGLE_TABLE")
* ORM\DiscriminatorColumn(name="type", type="string") * @ORM\DiscriminatorColumn(name="type", type="string")
* ORM\DiscriminatorMap({ * @ORM\DiscriminatorMap({
* "invitation" = "Chamilo\CoreBundle\Entity\AgendaEventInvitation", * "invitation" = "Chamilo\CoreBundle\Entity\AgendaEventInvitation",
* "subscription" = "Chamilo\CoreBundle\Entity\AgendaEventSubscription" * "subscription" = "Chamilo\CoreBundle\Entity\AgendaEventSubscription"
* }) * })
@ -37,7 +37,8 @@ class AgendaEventInvitation
/** /**
* @var Collection<int, AgendaEventInvitee> * @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; protected $invitees;

@ -11,10 +11,10 @@ use Doctrine\ORM\Mapping as ORM;
/** /**
* @ORM\Table(name="agenda_event_invitee") * @ORM\Table(name="agenda_event_invitee")
* Add @ to the next lineactivating the agenda_collective_invitations configuration setting. * Add @ to the next lineactivating the agenda_collective_invitations configuration setting.
* ORM\Entity() * @ORM\Entity()
* ORM\InheritanceType("SINGLE_TABLE") * @ORM\InheritanceType("SINGLE_TABLE")
* ORM\DiscriminatorColumn(name="type", type="string") * @ORM\DiscriminatorColumn(name="type", type="string")
* ORM\DiscriminatorMap({ * @ORM\DiscriminatorMap({
* "invitee" = "Chamilo\CoreBundle\Entity\AgendaEventInvitee", * "invitee" = "Chamilo\CoreBundle\Entity\AgendaEventInvitee",
* "subscriber" = "Chamilo\CoreBundle\Entity\AgendaEventSubscriber" * "subscriber" = "Chamilo\CoreBundle\Entity\AgendaEventSubscriber"
* }) * })

@ -7,7 +7,7 @@ namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
/** /**
* ORM\Entity() * @ORM\Entity()
*/ */
class AgendaEventSubscriber extends AgendaEventInvitee class AgendaEventSubscriber extends AgendaEventInvitee
{ {

@ -7,7 +7,7 @@ namespace Chamilo\CoreBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
/** /**
* ORM\Entity() * @ORM\Entity()
*/ */
class AgendaEventSubscription extends AgendaEventInvitation class AgendaEventSubscription extends AgendaEventInvitation
{ {

@ -17,9 +17,9 @@ use Doctrine\ORM\Mapping as ORM;
class PersonalAgenda class PersonalAgenda
{ {
// Uncomment next line when activating the agenda_collective_invitations configuration setting. // 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. // Uncomment next line when activating the agenda_event_subscriptions configuration setting.
//use EventSubscribableTrait; use EventSubscribableTrait;
/** /**
* @var int * @var int

@ -24,7 +24,7 @@ use Doctrine\ORM\Mapping as ORM;
* } * }
* ) * )
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true * 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 class Portfolio
{ {

@ -13,7 +13,7 @@ use Doctrine\ORM\Mapping as ORM;
* *
* @ORM\Table(name="portfolio_attachment") * @ORM\Table(name="portfolio_attachment")
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true * 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 class PortfolioAttachment
{ {

@ -20,7 +20,7 @@ use Doctrine\ORM\Mapping as ORM;
* } * }
* ) * )
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true * Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true
* ORM\Entity() * @ORM\Entity()
*/ */
class PortfolioCategory class PortfolioCategory
{ {
@ -65,7 +65,7 @@ class PortfolioCategory
/** /**
* @var int * @var int
* *
* @ORM\Column(name="parent_id", type="integer") * @ORM\Column(name="parent_id", type="integer", nullable=false, options={"default": 0})
*/ */
protected $parentId = 0; protected $parentId = 0;

@ -18,7 +18,7 @@ use Gedmo\Mapping\Annotation as Gedmo;
* @Gedmo\Tree(type="nested") * @Gedmo\Tree(type="nested")
* @ORM\Table(name="portfolio_comment") * @ORM\Table(name="portfolio_comment")
* Add @ to the next line if api_get_configuration_value('allow_portfolio_tool') is true * 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 class PortfolioComment
{ {

@ -8,7 +8,7 @@ use Doctrine\ORM\Mapping as ORM;
/** /**
* @ORM\Table(name="portfolio_rel_tag") * @ORM\Table(name="portfolio_rel_tag")
* ORM\Entity() * @ORM\Entity()
*/ */
class PortfolioRelTag class PortfolioRelTag
{ {

Loading…
Cancel
Save