Merged from geoportal service 1.0.9

This commit is contained in:
Fabio Sinibaldi 2022-06-10 14:44:04 +02:00
commit 466a3b5809
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,8 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## [v1.0.9] 2021-09-20
- Fixes [#23381](https://support.d4science.org/issues/23381)
- Fixes [#23485](https://support.d4science.org/issues/23485)
## [v1.0.8] 2021-09-20

View File

@ -203,8 +203,16 @@ public class ConcessioniMongoManager extends MongoManager{
}
public Concessione publish(String id) throws IOException{
Concessione toReturn=asConcessione(getDocById(asId(id)));
// unpublish if published
toReturn=onUpdate(toReturn);
// try unpublish
toReturn = unpublish(toReturn);
toReturn.validate();
// MATERIALIZE LAYERS