fix various copy/paste/typos (#22823)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
3d7a54555f
Коммит
28ad1c80cd
@@ -442,7 +442,7 @@ func (lr *LicenseRecord) IsValid() *AppError {
|
||||
}
|
||||
|
||||
if lr.Bytes == "" || len(lr.Bytes) > 10000 {
|
||||
return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.create_at.app_error", nil, "", http.StatusBadRequest)
|
||||
return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.bytes.app_error", nil, "", http.StatusBadRequest)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
@@ -120,7 +120,7 @@ func TestUploadLicenseFile(t *testing.T) {
|
||||
require.Equal(t, http.StatusBadRequest, resp.StatusCode)
|
||||
})
|
||||
|
||||
t.Run("try to get gone through trial, with TE build", func(t *testing.T) {
|
||||
t.Run("try to get one through trial, with TE build", func(t *testing.T) {
|
||||
th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ExperimentalSettings.RestrictSystemAdmin = false })
|
||||
th.App.Srv().Platform().SetLicenseManager(nil)
|
||||
|
||||
|
||||
@@ -9231,6 +9231,10 @@
|
||||
"id": "model.job.is_valid.type.app_error",
|
||||
"translation": "Invalid job type."
|
||||
},
|
||||
{
|
||||
"id": "model.license_record.is_valid.bytes.app_error",
|
||||
"translation": "Invalid value for bytes when uploading a license."
|
||||
},
|
||||
{
|
||||
"id": "model.license_record.is_valid.create_at.app_error",
|
||||
"translation": "Invalid value for create_at when uploading a license."
|
||||
|
||||
Ссылка в новой задаче
Block a user