fix restore with ID
This commit is contained in:
parent
7f3096ce85
commit
26d9e8bd03
@ -720,10 +720,8 @@ switch ($action) {
|
|||||||
try {
|
try {
|
||||||
$t = ORM::for_table($table)->create();
|
$t = ORM::for_table($table)->create();
|
||||||
foreach ($rec as $k => $v) {
|
foreach ($rec as $k => $v) {
|
||||||
if ($k != 'id') {
|
|
||||||
$t->set($k, $v);
|
$t->set($k, $v);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if ($t->save()) {
|
if ($t->save()) {
|
||||||
$suc++;
|
$suc++;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user