MM-15128 change openDialog to allow dialogs with no elements (#10755)

Этот коммит содержится в:
Andres Orozco
2019-04-30 09:08:52 -04:00
коммит произвёл Hanzei
родитель d4225349ef
Коммит 290d000ad2
2 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

@@ -79,11 +79,6 @@ func openDialog(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if dialog.Dialog.Elements == nil || len(dialog.Dialog.Elements) == 0 {
c.SetInvalidParam("dialog.elements")
return
}
if err := c.App.OpenInteractiveDialog(dialog); err != nil {
c.Err = err
return