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

BUG : Zero stock amount item - adding to Vault #90

Closed
tomik-z-cech opened this issue Mar 14, 2024 · 1 comment
Closed

BUG : Zero stock amount item - adding to Vault #90

tomik-z-cech opened this issue Mar 14, 2024 · 1 comment

Comments

@tomik-z-cech
Copy link
Owner

tomik-z-cech commented Mar 14, 2024

Describe the bug :
It is possible to add item that's not in stock to Vault.

To Reproduce :

  • Navigate to shop
  • Find item that's not in stock
  • Add the item to Vault
  • Navigate to Vault
  • See Vault content

Expected behavior :
Item that is not in stock cannot be added to Vault.

Screenshots :
N/A

Devices :
All devices.

Additional context :
Possible insufficient defense programming.

@tomik-z-cech tomik-z-cech self-assigned this Mar 14, 2024
@tomik-z-cech tomik-z-cech changed the title BUG : Zero (0) quantity field submission - vault BUG : Zero stock amount item - adding to Vault Mar 14, 2024
@tomik-z-cech
Copy link
Owner Author

Quantity adding input field and "Add to Vault" button displayed only if item is in stock, {% if item.item_stock > 0 %} added to item_detail.html template.

Bug fixed in commit 28df137.

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

No branches or pull requests

1 participant