Skip to content

Commit

Permalink
tweak wildcard, fixes issues with almost same template keys
Browse files Browse the repository at this point in the history
  • Loading branch information
nivv committed Feb 1, 2023
1 parent 45e7412 commit 8ebe91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/I18nTerm.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected function getTemplateJoinStatement(): Expression
{
return (get_class($this->getConnection()) === 'Illuminate\Database\SQLiteConnection')
? DB::raw("'%' || revision_template_fields.key || '%'")
: DB::raw("concat( '%',revision_template_fields.key,'%' )");
: DB::raw("concat('%-%--',revision_template_fields.key)");
}

public function scopeTranslatedFields(Builder $query, string $termWithoutKey, string $locale): Builder
Expand Down

0 comments on commit 8ebe91e

Please sign in to comment.