mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !167 from flybing/master
commit
bf23f9d060
|
|
@ -463,7 +463,7 @@ trait Backend
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->model->saveAll($insert);
|
$this->model->saveAll($insert, false);
|
||||||
} catch (PDOException $exception) {
|
} catch (PDOException $exception) {
|
||||||
$msg = $exception->getMessage();
|
$msg = $exception->getMessage();
|
||||||
if (preg_match("/.+Integrity constraint violation: 1062 Duplicate entry '(.+)' for key '(.+)'/is", $msg, $matches)) {
|
if (preg_match("/.+Integrity constraint violation: 1062 Duplicate entry '(.+)' for key '(.+)'/is", $msg, $matches)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue