Fix saving of empty sponsors

Fixes HANGAR-1J
This commit is contained in:
Nassim Jahnke 2023-04-27 12:35:15 +02:00
parent bddd181cad
commit 133233611c
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B

View File

@ -253,7 +253,7 @@ public class ProjectService extends HangarComponent {
}
final ProjectTable projectTable = this.getProjectTable(author, slug);
projectTable.setSponsors(content);
projectTable.setSponsors(trimmedContent);
this.projectsDAO.update(projectTable);
// TODO what settings changed
projectTable.logAction(this.actionLogger, LogAction.PROJECT_SETTINGS_CHANGED, "", "");