Skip to content

Commit

Permalink
EPBDS-12322 Open previous revision of deploy conf gives No Changes st…
Browse files Browse the repository at this point in the history
…atus
  • Loading branch information
BirukEugene authored and yurkom committed Dec 6, 2021
1 parent b6182d3 commit ef4c8c3
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -249,11 +249,12 @@ public void update(AProjectArtefact artefact, CommonUser user) throws ProjectExc
private List<ProjectDescriptor> getDescriptors() {
synchronized (this) {
try {
FileItem folder = getRepository().read(getFolderPath());
FileData folder = getRepository().check(getFolderPath());
if (folder != null) {
//Determine whether the deployment project has been modified by other WebStudio instances or manually, if so, then refresh it.
Date modifiedAt = folder.getData().getModifiedAt();
if (!modifiedAt.equals(getFileData().getModifiedAt())) {
//do not refresh the project if it is open
Date modifiedAt = folder.getModifiedAt();
if (!isOpened() && !modifiedAt.equals(getFileData().getModifiedAt())) {
super.refresh();
setHistoryVersion(null);
descriptors = null;
Expand Down

0 comments on commit ef4c8c3

Please sign in to comment.