Skip to content
Snippets Groups Projects
Commit 53cd8820 authored by srosse's avatar srosse
Browse files

OO-293: better back support while switching between static sites and enhance...

OO-293: better back support while switching between static sites and enhance the check for the mapping site <-> history point by adding a real business path
parent 5d387118
No related branches found
No related tags found
No related merge requests found
...@@ -547,8 +547,8 @@ public class BaseFullWebappController extends BasicController implements Generic ...@@ -547,8 +547,8 @@ public class BaseFullWebappController extends BasicController implements Generic
SiteInstance site = ((StateSite)s).getSite(); SiteInstance site = ((StateSite)s).getSite();
for(SiteInstance savedSite:sites) { for(SiteInstance savedSite:sites) {
if(site.getClass().equals(savedSite.getClass())) { if(site.getClass().equals(savedSite.getClass())) {
updateBusinessPath(ureq, savedSite);
activateSite(savedSite, ureq, null, entries); activateSite(savedSite, ureq, null, entries);
//updateBusinessPath(ureq, savedSite);
} }
} }
} }
...@@ -1067,10 +1067,12 @@ public class BaseFullWebappController extends BasicController implements Generic ...@@ -1067,10 +1067,12 @@ public class BaseFullWebappController extends BasicController implements Generic
String start = businessPath.substring(0, index); String start = businessPath.substring(0, index);
if(!point.getBusinessPath().startsWith(start)) { if(!point.getBusinessPath().startsWith(start)) {
//if a controller has not set its business path, don't pollute the mapping //if a controller has not set its business path, don't pollute the mapping
siteToBusinessPath.put(site, new HistoryPointImpl(ureq.getUuid(), businessPath, null)); List<ContextEntry> entries = siteToBornSite.get(site).getController().getWindowControlForDebug().getBusinessControl().getEntries();
siteToBusinessPath.put(site, new HistoryPointImpl(ureq.getUuid(), businessPath, entries));
return; return;
} }
} }
siteToBusinessPath.put(site, point); siteToBusinessPath.put(site, point);
} }
...@@ -1084,7 +1086,8 @@ public class BaseFullWebappController extends BasicController implements Generic ...@@ -1084,7 +1086,8 @@ public class BaseFullWebappController extends BasicController implements Generic
String start = businessPath.substring(0, index); String start = businessPath.substring(0, index);
if(!point.getBusinessPath().startsWith(start)) { if(!point.getBusinessPath().startsWith(start)) {
//if a controller has not set its business path, don't pollute the mapping //if a controller has not set its business path, don't pollute the mapping
dtabToBusinessPath.put(tab, new HistoryPointImpl(ureq.getUuid(), businessPath, null)); List<ContextEntry> entries = tab.getController().getWindowControlForDebug().getBusinessControl().getEntries();
dtabToBusinessPath.put(tab, new HistoryPointImpl(ureq.getUuid(), businessPath, entries));
return; return;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment