Skip to content

Commit

Permalink
core (fix) Selected 'Minimum missed ID' fix #1927
Browse files Browse the repository at this point in the history
  • Loading branch information
Ser1ous committed Apr 5, 2021
1 parent 0722c52 commit 554f0ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manager/processors/save_content.processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,9 @@
{
case '1':
$id = \EvolutionCMS\Models\SiteContent::withTrashed()
->leftJoin('site_content as t1', 'site_content.id +1', '=','t1.id')
->leftJoin('site_content as t1', function ($join) {
$join->on(\DB::raw(evo()->getDatabase()->getFullTableName('site_content').'.id +1'), '=', 't1.id');
})
->whereNull('t1.id')->min('site_content.id');
$id++;

Expand Down

0 comments on commit 554f0ab

Please sign in to comment.