Skip to content
Snippets Groups Projects
Verified Commit 8b02d65b authored by Martin Weise's avatar Martin Weise
Browse files

Fixed Persist dialog

parent b1fe78f4
No related branches found
No related tags found
2 merge requests!387Wrong model,!384Wrong model
This commit is part of merge request !384. Comments created here will be created in the context of that merge request.
No preview for this file type
...@@ -84,10 +84,9 @@ public class View { ...@@ -84,10 +84,9 @@ public class View {
@ToString.Exclude @ToString.Exclude
@EqualsAndHashCode.Exclude @EqualsAndHashCode.Exclude
@org.springframework.data.annotation.Transient
@ManyToOne(fetch = FetchType.LAZY) @ManyToOne(fetch = FetchType.LAZY)
@JoinColumns({ @JoinColumns({
@JoinColumn(name = "vdbid", referencedColumnName = "id", insertable = false, updatable = false) @JoinColumn(name = "vdbid", referencedColumnName = "id")
}) })
private Database database; private Database database;
......
...@@ -1391,9 +1391,10 @@ export default { ...@@ -1391,9 +1391,10 @@ export default {
this.loadingPublish = true this.loadingPublish = true
const identifierService = useIdentifierService() const identifierService = useIdentifierService()
identifierService.publish(this.identifier.id) identifierService.publish(this.identifier.id)
.then(() => { .then((identifier) => {
const toast = useToastInstance() const toast = useToastInstance()
toast.success(this.$t('success.pid.published')) toast.success(this.$t('success.pid.published'))
this.identifier = identifier
this.cacheStore.reloadDatabase() this.cacheStore.reloadDatabase()
this.loadingPublish = false this.loadingPublish = false
}) })
......
...@@ -331,9 +331,9 @@ CREATE TABLE IF NOT EXISTS `mdb_identifiers` ...@@ -331,9 +331,9 @@ CREATE TABLE IF NOT EXISTS `mdb_identifiers`
( (
id VARCHAR(36) NOT NULL DEFAULT UUID(), id VARCHAR(36) NOT NULL DEFAULT UUID(),
dbid VARCHAR(36) NOT NULL, dbid VARCHAR(36) NOT NULL,
qid VARCHAR(36) NOT NULL, qid VARCHAR(36),
vid VARCHAR(36) NOT NULL, vid VARCHAR(36),
tid VARCHAR(36) NOT NULL, tid VARCHAR(36),
publisher VARCHAR(255) NOT NULL, publisher VARCHAR(255) NOT NULL,
language VARCHAR(2), language VARCHAR(2),
publication_year INT NOT NULL, publication_year INT NOT NULL,
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment