|
|
@@ -15,7 +15,7 @@ class TermController extends ActionController
|
|
|
|
|
|
public function createAction($terms, $categoryObj, $typeObj, $urlObj): void {
|
|
|
foreach ($terms as $term) {
|
|
|
- if($term !== '') {
|
|
|
+ if($term !== '' && !($this->termRepository->findByTitle($term))) {
|
|
|
$termObj = new Term();
|
|
|
$termObj->setTerm($term);
|
|
|
$termObj->setCategory($categoryObj);
|