Skip to content
Snippets Groups Projects
Commit d74c771f authored by pfleu's avatar pfleu
Browse files

API : Entry : Create : Fix recherche entrée existante

parent e91a89ef
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ class ApiEntryController extends AppBaseController
]);
if ($zeroEntry) {
$headword = $zeroEntry->getHeadword();
$headword = $zeroEntry[0]->getHeadword();
// $this->warning[] = sprintf("Cette entrée existe déjà dans le lexique %s.", $zeroEntry->getLexicon()->getName());
} else {
$wiktionaryData = $wiktionaryManager->search($data['graphy'], $language);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment