mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
fix restore with ID
This commit is contained in:
parent
7f3096ce85
commit
26d9e8bd03
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue