Index: lams_central/src/flash/org/lamsfoundation/lams/authoring/cv/Canvas.as =================================================================== diff -u -r9e84218c2f5bd8ad6090f1f3cd6a90a5edfe5083 -rf13ccb75a8e8dc3aa154449e7ad5481ecc907c84 --- lams_central/src/flash/org/lamsfoundation/lams/authoring/cv/Canvas.as (.../Canvas.as) (revision 9e84218c2f5bd8ad6090f1f3cd6a90a5edfe5083) +++ lams_central/src/flash/org/lamsfoundation/lams/authoring/cv/Canvas.as (.../Canvas.as) (revision f13ccb75a8e8dc3aa154449e7ad5481ecc907c84) @@ -27,6 +27,7 @@ import org.lamsfoundation.lams.authoring.* import org.lamsfoundation.lams.common.ui.* import org.lamsfoundation.lams.common.dict.* +import org.lamsfoundation.lams.common.ws.Workspace import org.lamsfoundation.lams.common.* import mx.managers.* import mx.utils.* @@ -308,10 +309,10 @@ var msg:String = Dictionary.getValue('al_empty_design'); LFMessage.showMessageAlert(msg); }else { - saveDesignToServerAs(); + saveDesignToServerAs(Workspace.MODE_SAVE); } }else if(_ddm.readOnly){ - saveDesignToServerAs(); + saveDesignToServerAs(Workspace.MODE_SAVEAS); }else{ saveDesignToServer(); } @@ -324,14 +325,14 @@ * @param tabToShow The tab to be selected when the dialogue opens. * @return */ - public function saveDesignToServerAs(){ + public function saveDesignToServerAs(mode:String){ //clear the learningDesignID so it will not overwrite the existing one _ddm.learningDesignID = null; var onOkCallback:Function = Proxy.create(this, saveDesignToServer); var ws = Application.getInstance().getWorkspace(); - ws.setDesignProperties("LOCATION",onOkCallback); + ws.setDesignProperties("LOCATION", mode, onOkCallback); } @@ -363,8 +364,9 @@ _ddm.licenseText = workspaceResultDTO.resourceLicenseText; _ddm.licenseID = workspaceResultDTO.resourceLicenseID; } + var mode:String = Application.getInstance().getWorkspace().getWorkspaceModel().currentMode; - if(_ddm.learningDesignID == null) { isCopy = true; } + if(_ddm.learningDesignID == null && mode == Workspace.MODE_SAVEAS) { isCopy = true; } var dto:Object = _ddm.getDesignForSaving(isCopy); var callback:Function = Proxy.create(this,onStoreDesignResponse); Index: lams_central/web/lams_authoring.swf =================================================================== diff -u -r3ecdd8ce06b29688a039f8c7694019d2c806409e -rf13ccb75a8e8dc3aa154449e7ad5481ecc907c84 Binary files differ Index: lams_central/web/lams_authoring_library.swf =================================================================== diff -u -r3ecdd8ce06b29688a039f8c7694019d2c806409e -rf13ccb75a8e8dc3aa154449e7ad5481ecc907c84 Binary files differ