Skip to content

Commit 554f0ab

Browse files
committed
core (fix) Selected 'Minimum missed ID' fix #1927
1 parent 0722c52 commit 554f0ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

manager/processors/save_content.processor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@
322322
{
323323
case '1':
324324
$id = \EvolutionCMS\Models\SiteContent::withTrashed()
325-
->leftJoin('site_content as t1', 'site_content.id +1', '=','t1.id')
325+
->leftJoin('site_content as t1', function ($join) {
326+
$join->on(\DB::raw(evo()->getDatabase()->getFullTableName('site_content').'.id +1'), '=', 't1.id');
327+
})
326328
->whereNull('t1.id')->min('site_content.id');
327329
$id++;
328330

0 commit comments

Comments
 (0)