test(32-01): add failing tests for form extension placement and save
- TestFormExtensionPlacement, TestFormExtensionBootErrors, TestFormExtensionTwoPluginsSameAnchor, TestFormExtensionOnePluginTwoControllers, TestFormExtensionUnextendedSchemaUnchanged, TestFormExtensionWidgetsAndPartials - TestFormExtensionSave (Postgres): rollback, 422 lines, notices, invisible extensions, locale maps, hidden owner fields - checkFormExtensionTabLabels declared (no-op) so the tests compile
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
|
||||
"git.golem15.com/golem15/summercms/modules/pact"
|
||||
"git.golem15.com/golem15/summercms/modules/party"
|
||||
"git.golem15.com/golem15/summercms/modules/phrasebook"
|
||||
"github.com/goccy/go-yaml/ast"
|
||||
"github.com/goccy/go-yaml/parser"
|
||||
"gorm.io/gorm"
|
||||
@@ -606,3 +607,9 @@ func recordIDText(model any) string {
|
||||
}
|
||||
return fmt.Sprint(value)
|
||||
}
|
||||
|
||||
// checkFormExtensionTabLabels refuses two tab keys of an extended form whose
|
||||
// labels translate to the same text in a locale the phrasebook loads.
|
||||
func checkFormExtensionTabLabels(reg *Registry, tr *phrasebook.Translator) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user