Skip to content
New issue

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

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

Already on GitHub? # to your account

Part Add is buggy #35

Closed
redknitin opened this issue Dec 9, 2017 · 1 comment
Closed

Part Add is buggy #35

redknitin opened this issue Dec 9, 2017 · 1 comment

Comments

@redknitin
Copy link
Owner

Expected Behavior

From the issue page, select the part and ensure that the UOM is correctly displayed. Enter the quantity and click the Add button.

Actual Behavior

From the issue page, select the part and ensure that the UOM is correctly displayed. Enter the quantity and click the Upload (supposed to be "Add") button. Error displayed is: "undefined method `find' for nil:NilClass" for tickets.rb:331 "check_existing = @rec[:parts].find { |x| x[:part] == @params[:code] }"

Steps to Reproduce

Attempt to add a part for an issue that has no existing parts.

@redknitin
Copy link
Owner Author

Most likely, all we need is a null check at tickets.rb:331

@redknitin redknitin added the bug label Dec 9, 2017
IlinDmitry added a commit to IlinDmitry/Helpdesk that referenced this issue Dec 12, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants