Skip to content

Commit

Permalink
Portfolio: Fix lang var + set null on delete - refs BT#14560
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 28, 2018
1 parent daea8c6 commit 8384052
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main/install/configuration.dist.php
Expand Up @@ -820,7 +820,7 @@
ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062A76ED395 FOREIGN KEY (user_id) REFERENCES user (id);
ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106291D79BD3 FOREIGN KEY (c_id) REFERENCES course (id);
ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED1062613FECDF FOREIGN KEY (session_id) REFERENCES session (id);
ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106212469DE2 FOREIGN KEY (category_id) REFERENCES portfolio_category (id);
ALTER TABLE portfolio ADD CONSTRAINT FK_A9ED106212469DE2 FOREIGN KEY (category_id) REFERENCES portfolio_category (id) ON DELETE SET NULL;
ALTER TABLE portfolio_category ADD CONSTRAINT FK_7AC64359A76ED395 FOREIGN KEY (user_id) REFERENCES user (id);
INSERT INTO settings_current(variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES('course_create_active_tools','portfolio','checkbox','Tools','true','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Portfolio', 0);
*/
Expand Down
2 changes: 1 addition & 1 deletion main/portfolio/edit_item.php
Expand Up @@ -39,7 +39,7 @@
$em->flush();

Display::addFlash(
Display::return_message(get_lang('Updated'), 'success')
Display::return_message(get_lang('ItemUpdated'), 'success')
);

header("Location: $baseUrl");
Expand Down
4 changes: 2 additions & 2 deletions main/portfolio/index.php
Expand Up @@ -133,7 +133,7 @@
$em->flush();

Display::addFlash(
Display::return_message(get_lang('PortfolioItemDeleted'), 'success')
Display::return_message(get_lang('CategoryDeleted'), 'success')
);

header("Location: $baseUrl");
Expand Down Expand Up @@ -201,7 +201,7 @@
$em->flush();

Display::addFlash(
Display::return_message(get_lang('PortfolioItemDeleted'), 'success')
Display::return_message(get_lang('ItemDeleted'), 'success')
);

header("Location: $baseUrl");
Expand Down
2 changes: 1 addition & 1 deletion src/Chamilo/CoreBundle/Entity/Portfolio.php
Expand Up @@ -96,7 +96,7 @@ class Portfolio
* @var \Chamilo\CoreBundle\Entity\PortfolioCategory
*
* @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\PortfolioCategory", inversedBy="items")
* @ORM\JoinColumn(name="category_id", referencedColumnName="id")
* @ORM\JoinColumn(name="category_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $category;

Expand Down

0 comments on commit 8384052

Please sign in to comment.