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

Unable to add assets without submitting purchase cost #2547

Closed
2 tasks done
UntrustedRoot opened this issue Sep 1, 2016 · 1 comment
Closed
2 tasks done

Unable to add assets without submitting purchase cost #2547

UntrustedRoot opened this issue Sep 1, 2016 · 1 comment

Comments

@UntrustedRoot
Copy link

Expected Behavior (or desired behavior if a feature request)

Creating an asset with an unknown cost, previous versions we would not enter a value.


Actual Behavior

After submitting I am taken back to the create asset screen. Apache logs show a 500 error on post but I am presented with nothing.

Debug output shows the following:
[2016-09-01 14:43:20] production.ERROR: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'purchase_cost' cannot be null in /var/www/html/snipeit/vendor/laravel/framework/src/Illuminate/Database/Connection.php:457

Entering a cost corrects the issue.

I also bashed my head kinda hard when I figured it out. Please send ice.


Please confirm you have done the following before posting your bug report:


Please provide answers to these questions before posting your bug report:

@snipe
Copy link
Owner

snipe commented Sep 1, 2016

Duplicate of #2515

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