-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
V3 Error When Checking Out Licenses #2149
Comments
Are you selecting an asset AND a user from that checkout screen? |
No, I thought that might have been what was happening too. I think I might have something wonky going on with my install, as did a clean install on a VM and imported my DB and was unable to replicate. I'm now doing a clean install on the test server to see if that fixes it. |
Okay, I'm going to close this for now, since you can't replicate it, but feel free to update this issue if you run into it again. |
Yeah, I got it working now. I dropped the database and started from scratch with the v3 install.sh script. Re-imported my database and copied over my files and all is good now. Sorry for not trying that first! :) |
lmao - you and your gifs! |
So, things were working fine when I left work yesterday. I came in today, applied the updates from your most recent commits and am back to where I was before lol. I think I found the issue though. Here is a view of an asset that I want to assign a license to. You can see it is assigned to the user Math Lab. However, when I go into the license and search for this device, it is displaying as (unassigned). If I select both the device and the user, I am able to successfully check-out the license, but if I select only the device, I get the error mentioned above. Any ideas? |
Huh. I didn't make any changes to that process yesterday, I don't think. I'll take a look. |
Not that process in particular... I just saw you pushed out some new commits last night, so applied them this morning. |
Are you on v3, or v3-master? I think I may have fixed your issue. My change is pushed out to the v3 branch |
v3-Master |
K, I just pushed it up to master. Let me know if that helps. |
Will do! I get into to work around 6:30 am Eastern. I'll apply it first thing and let you know! |
Ok, so I am no longer getting the message [2016-07-07 07:06:17] production.ERROR: ErrorException: Undefined variable: is_asset_id in /var/www/html/snipeit/app/Http/Controllers/LicensesController.php:551 |
I can still check out to users without an issue. I can also check out to an asset, as long as the corresponding user is also selected, but checking out to just an asset is a no go. |
Pull and try again please |
On it! |
Expected Behavior (or desired behavior if a feature request)
When checking out a license, the license should be able to be checked out to any device or user regardless of the licensed to name and email.
Actual Behavior
Example - TeamViewer has 12 licenses, the registered to user and email is set to the software asset manager who purchased the software. When attempting to checkout any of the seats to the devices the licenses are installed on, the following error appears:
Error: The asset you are trying to associate with this license is owned by somene other than the person selected in the assigned to dropdown.
If I remove the licensed to name and email, I can then check the license out. Not sure if this is the intended behavior, but most of our licenses are only licensed to one email address, but are assigned to several workstations. This is especially true for licenses with a large seat number with 200 more seats.
Please confirm you have done the following before posting your bug report:
Please provide answers to these questions before posting your bug report:
The text was updated successfully, but these errors were encountered: