Index: lams_common/src/flash/org/lamsfoundation/lams/common/ws/WorkspaceDialog.as =================================================================== diff -u -r6c90043704fe63dbe2cd6dd59c4265641799a04d -rb87f0387dcb18faa0b320fbaa7bc4a8b9ee4b845 --- lams_common/src/flash/org/lamsfoundation/lams/common/ws/WorkspaceDialog.as (.../WorkspaceDialog.as) (revision 6c90043704fe63dbe2cd6dd59c4265641799a04d) +++ lams_common/src/flash/org/lamsfoundation/lams/common/ws/WorkspaceDialog.as (.../WorkspaceDialog.as) (revision b87f0387dcb18faa0b320fbaa7bc4a8b9ee4b845) @@ -93,6 +93,8 @@ private var _selectedDesignId:Number; + private static var OTHER_LICENSE_ID:Number = 2; + //These are defined so that the compiler can 'see' the events that are added at runtime by EventDispatcher private var dispatchEvent:Function; public var addEventListener:Function; @@ -136,8 +138,10 @@ currentPath_lbl.text = ""+Dictionary.getValue('ws_dlg_location_button')+":" license_lbl.text = Dictionary.getValue('ws_license_lbl'); license_comment_lbl.text = Dictionary.getValue('ws_license_comment_lbl'); + name_lbl.text = Dictionary.getValue('ws_dlg_filename'); - //Set the text for buttons + + //Set the text for buttons ok_btn.label = Dictionary.getValue('ws_dlg_ok_button'); cancel_btn.label = Dictionary.getValue('ws_dlg_cancel_button'); viewLicense_btn.label = Dictionary.getValue('ws_view_license_button'); @@ -370,7 +374,7 @@ //Only update the details if the node if its a resource:a var nodeData = newSelectedNode.attributes.data; - + if(nodeData.resourceType == _workspaceModel.RT_FOLDER){ resourceTitle_txi.text = ""; @@ -453,11 +457,14 @@ private function populateAvailableLicenses(licenses:Array, wm:WorkspaceModel){ Debugger.log('Got this many:'+licenses.length,Debugger.GEN,'populateAvailableLicenses','org.lamsfoundation.lams.ws.WorkspaceDialog'); //add the blank one + + var _licenses = licenses; + _licenses.sortOn("licenseID", Array.NUMERIC); var lic_dp = new Array(); lic_dp.addItem({label:Dictionary.getValue('license_not_selected'),data:""}); licenseID_cmb.dataProvider = lic_dp; - for (var i=0;i