fix restore with ID
This commit is contained in:
parent
7f3096ce85
commit
26d9e8bd03
@ -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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user