Skip to content

Commit

Permalink
SAK-33850 Making sure create site from archive is cancelled (sakaipro…
Browse files Browse the repository at this point in the history
…ject#5293)

* SAK-33850 Making sure create site from archive is cancelled

* Adding to cleanState

* Wrong variable
  • Loading branch information
yuanhuaqu authored and ern committed Feb 9, 2018
1 parent e4e9f9c commit a184e28
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1202,6 +1202,8 @@ private void cleanState(SessionState state) {

// SAK-24423 - remove joinable site settings from the state
JoinableSiteSettings.removeJoinableSiteSettingsFromState( state );

state.removeAttribute(STATE_CREATE_FROM_ARCHIVE);

} // cleanState

Expand Down Expand Up @@ -7548,6 +7550,8 @@ public void doCancel_create(RunData data) {
} else {
state.setAttribute(STATE_TEMPLATE_INDEX, "0");
}

state.setAttribute(STATE_CREATE_FROM_ARCHIVE, Boolean.FALSE);

resetVisitedTemplateListToIndex(state, (String) state.getAttribute(STATE_TEMPLATE_INDEX));

Expand Down

0 comments on commit a184e28

Please sign in to comment.