Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Glossary: Include part_of_speech in check for duplicate entries (#1251)
  • Loading branch information
ocean90 committed Jul 5, 2021
1 parent d750291 commit 889bd73
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions gp-includes/routes/glossary-entry.php
Expand Up @@ -87,9 +87,10 @@ public function glossary_entry_add_post( $project_path, $locale_slug, $translati
$this->redirect( gp_url_join( gp_url_project_locale( $project->path, $locale_slug, $translation_set_slug ), array( 'glossary' ) ) );
} else {
$find_parms = array(
'glossary_id' => $glossary->id,
'term' => $new_glossary_entry->term,
'translation' => $new_glossary_entry->translation,
'glossary_id' => $glossary->id,
'term' => $new_glossary_entry->term,
'translation' => $new_glossary_entry->translation,
'part_of_speech' => $new_glossary_entry->part_of_speech,
);

if ( GP::$glossary_entry->find_one( $find_parms ) ) {
Expand Down

0 comments on commit 889bd73

Please sign in to comment.