debugged community creation process

This commit is contained in:
2025-10-19 15:06:41 -06:00
parent 021807e53e
commit e77ecf2a06
2 changed files with 2 additions and 13 deletions
+2 -2
View File
@@ -383,7 +383,7 @@ func CreateCommunityForm(ctxt ui.AmContext) (string, any, error) {
return ui.ErrorPage(ctxt, errors.New("you are not permitted to create a community"))
}
dlg, err := ui.AmLoadDialog("create_comm")
if err != nil {
if err == nil {
dlg.Field("language").Value = "en-US"
dlg.Field("country").Value = "US"
return dlg.Render(ctxt)
@@ -406,7 +406,7 @@ func CreateCommunity(ctxt ui.AmContext) (string, any, error) {
return ui.ErrorPage(ctxt, errors.New("you are not permitted to create a community"))
}
dlg, err := ui.AmLoadDialog("create_comm")
if err != nil {
if err == nil {
dlg.LoadFromForm(ctxt)
action := dlg.WhichButton(ctxt)
if action == "cancel" {