Merge pull request #233 from bsinno/fix_Introduce_consitent_button_icon_for_update_create_dialogs_refactor

Save button only enabled if form is filled out correctly
This commit is contained in:
Kai Zimmermann
2016-07-07 12:14:13 +02:00
committed by GitHub
33 changed files with 863 additions and 1057 deletions

View File

@@ -132,7 +132,7 @@ public class JpaSoftwareManagement implements SoftwareManagement {
final JpaSoftwareModuleType type = softwareModuleTypeRepository.findOne(sm.getId());
boolean updated = false;
if (sm.getDescription() != null && !sm.getDescription().equals(type.getDescription())) {
if (sm.getDescription() == null || !sm.getDescription().equals(type.getDescription())) {
type.setDescription(sm.getDescription());
updated = true;
}