fix restore with ID

This commit is contained in:
Ibnu Maksum 2024-05-21 13:50:10 +07:00
parent 7f3096ce85
commit 26d9e8bd03
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -720,9 +720,7 @@ switch ($action) {
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++;