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

Throw exception when there are no available seats for checkout #11827

Closed
2 tasks done
nh314 opened this issue Sep 15, 2022 · 1 comment
Closed
2 tasks done

Throw exception when there are no available seats for checkout #11827

nh314 opened this issue Sep 15, 2022 · 1 comment
Assignees

Comments

@nh314
Copy link
Contributor

nh314 commented Sep 15, 2022

Debug mode

Describe the bug

Throw exception when there are no available seats for checkout

Reproduction steps

  1. Create new test license with 2 seats
  2. Go to license software page, click 'Checkout' button of the license just created
  3. On 'Checkout License Seat' page, select random user and click 'Checkout' button
  4. Repeat step 2
  5. Open new tab, edit the license, decrease number of seat to 1
  6. Back to tab at step 4, select random user and click 'Checkout' button.

Expected behavior

Redirect to 'License Index' page with error message 'There are no available seats for this license'

Screenshots

Screenshot_4

Snipe-IT Version

6.0.8

Operating System

Ubuntu 22.04.1 LTS

Web Server

Apache/2.4.52 (Ubuntu)

PHP Version

Apache/2.4.52 (Ubuntu)

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

@welcome
Copy link

welcome bot commented Sep 15, 2022

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

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

No branches or pull requests

2 participants