Skip to content

Commit

Permalink
fix restore with ID
Browse files Browse the repository at this point in the history
  • Loading branch information
ibnux committed May 21, 2024
1 parent 7f3096c commit 26d9e8b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions system/controllers/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,9 +720,7 @@
try {
$t = ORM::for_table($table)->create();
foreach ($rec as $k => $v) {
if ($k != 'id') {
$t->set($k, $v);
}
$t->set($k, $v);
}
if ($t->save()) {
$suc++;
Expand Down

0 comments on commit 26d9e8b

Please sign in to comment.