mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
fix various copy/paste/typos (#22823)
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user