Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A negative integer shall be a number #21263

Closed
1 task
vw98075 opened this issue Feb 28, 2023 · 4 comments · Fixed by #24656
Closed
1 task

A negative integer shall be a number #21263

vw98075 opened this issue Feb 28, 2023 · 4 comments · Fixed by #24656

Comments

@vw98075
Copy link
Contributor

vw98075 commented Feb 28, 2023

Overview of the issue

In a JDL file, I have the following field

changeSinceLastClose  Integer min(-999) max(999) required 

in an entity.

With the Faker in the dev environment, some negative integers are generated for the field. But in the admin UI, the submit button is greyed out if a negative integer is in the field (see the screenshot).

Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)

7.9.3

JHipster configuration

{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "abc",
    "blueprints": [],
    "buildTool": "gradle",
    "cacheProvider": "ehcache",
    "clientFramework": "vue",
    "clientPackageManager": "npm",
    "clientTheme": "spacelab",
    "clientThemeVariant": "light",
    "creationTimestamp": 1677562600067,
    "databaseType": "sql",
    "devDatabaseType": "h2Memory",
    "devServerPort": 9060,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [
   ...
    ],
    "entitySuffix": "",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "7.9.3",
    "jwtSecretKey": ...
    "languages": ["en", "fr"],
    "lastLiquibaseTimestamp": 1677563028000,
    "messageBroker": false,
    "microfrontend": false,
    "microfrontends": [],
    "monorepository": true,
    "nativeLanguage": "en",
    "otherModules": [],
    "packageName": "com.xyz.abc",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": "8080",
    "serverSideOptions": [],
    "serviceDiscoveryType": "no",
    "skipCheckLengthOfIdentifier": false,
    "skipClient": false,
    "skipCommitHook": true,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}

Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)
@vw98075
Copy link
Contributor Author

vw98075 commented Feb 28, 2023

Screenshot_select-area_20230227221940

@atomfrede
Copy link
Member

Did you check with angular? I could think of a vue only issue.

@vw98075
Copy link
Contributor Author

vw98075 commented Apr 26, 2023

It likely is a Vue only issue. I don't use Angular.

@qmonmert
Copy link
Contributor

@DanielFran I confirm the bug

I try to find a solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants