diff --git a/application/models/ISO19115.php b/application/models/ISO19115.php index 0f0be107..bbb4271c 100755 --- a/application/models/ISO19115.php +++ b/application/models/ISO19115.php @@ -256,7 +256,7 @@ class ISO19115 else { $sql="insert into en.series (name) values(?)"; $db->query($sql,array($ds['seriesName'])); - $sid=$db->lastInsertId('series','id'); + $sid=$db->lastInsertId('en.series','id'); } $sql="insert into en.dataseries (id,sid) values(?,?)"; $db->query($sql,array($id,$sid));