Skip to content

Commit

Permalink
AddonModal: fix create addon without tags
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Jan 13, 2016
1 parent 1177b4a commit 06b54b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/modules/front/controls/AddonModal/AddonModal.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ protected function createComponentForm()
$addon->owner = $owner;
$addon->name = $name;
$addon->github = new Github();
$addon->tags->add($form->values->tags);

dd($addon);
if ($form->values->tags) {
$addon->tags->add($form->values->tags);
}

try {
$this->addonRepository->persistAndFlush($addon);
Expand Down

0 comments on commit 06b54b8

Please sign in to comment.