Index: lams_central/web/lams_authoring.swf =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/lams_authoring.swf,v diff -u -r1.484 -r1.485 Binary files differ Index: lams_central/web/lams_authoring_library.swf =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/lams_authoring_library.swf,v diff -u -r1.384 -r1.385 Binary files differ Index: lams_flash/src/central/flash/org/lamsfoundation/lams/authoring/cmpt/CompetenceDefinitionDialog.as =================================================================== RCS file: /usr/local/cvsroot/lams_flash/src/central/flash/org/lamsfoundation/lams/authoring/cmpt/CompetenceDefinitionDialog.as,v diff -u -r1.4 -r1.5 --- lams_flash/src/central/flash/org/lamsfoundation/lams/authoring/cmpt/CompetenceDefinitionDialog.as 8 Oct 2008 00:13:27 -0000 1.4 +++ lams_flash/src/central/flash/org/lamsfoundation/lams/authoring/cmpt/CompetenceDefinitionDialog.as 27 Oct 2008 23:47:50 -0000 1.5 @@ -211,7 +211,6 @@ if (competenceName.length == 0) { LFMessage.showMessageAlert(Dictionary.getValue("competence_editor_warning_title_blank"), null); - } else if (app.getDesignDataModel().competences.containsKey(competenceName)) { // entry already exists, do not add @@ -234,36 +233,46 @@ var updatedCompetenceName:String = StringUtils.trim(competence_title_txt.text); var updatedCompetenceDesc:String = StringUtils.trim(competence_description_txt.text); - if (editingCompetence != null && editingCompetence != undefined && app.getDesignDataModel().competences.containsKey(editingCompetence)) { - if (updatedCompetenceName.length > 0) { - app.getDesignDataModel().competences.remove(editingCompetence); // remove the original competencetitle - app.getDesignDataModel().competences.put(updatedCompetenceName, updatedCompetenceDesc); - - // if the competence title has changed, update the mappings for all activities to the new competence title - if (editingCompetence != updatedCompetenceName) { - - var activityKeys:Array = app.getDesignDataModel().activities.keys(); // contains the activity UIIDs - - for (var i=0; i 0) { + app.getDesignDataModel().competences.remove(editingCompetence); // remove the original competencetitle + app.getDesignDataModel().competences.put(updatedCompetenceName, updatedCompetenceDesc); + + // if the competence title has changed, update the mappings for all activities to the new competence title + if (editingCompetence != updatedCompetenceName) { + + var activityKeys:Array = app.getDesignDataModel().activities.keys(); // contains the activity UIIDs + + for (var i=0; i