Open the license view / click on a license. Check out a specific license seat number to an asset/user. This assignment should stick to the chosen seat number.
Seat 1 will be overwritten, regardless of the seat number which was predefined.
app/storage/logs and your webserver's logs.Please do not post an issue without answering the related questions above. If you have opened a different issue and already answered these questions, answer them again, once for every ticket. It will be next to impossible for us to help you.
But only if the license was added before 4.1.3, new ones are working fine.
Here a little demo of the problem: https://files.gitter.im/snipe/snipe-it/d1Rf/snipe.mov
--
This issue is also in v4.1.3 build 94 (gb6a14d2)
Hi,
I am also facing this problem. I have been added Seat as 4 but when i try to checkout license for other employee it overrides the 1st seat. We are hosted on Snipe-It itself.
Yes, this is a problem for us as we can't checkout licenses right now.
I'm going to try to upgrade to 4.14 and then if not, I'll downgrade.
We can't check out any licenses as it just takes over Seat 1, regardless of whether we do a manual seat selection or try to check out from the main license page.
Not working for us in v4.1.4 build 173 (gba38b84)
is this issue resolved?
On Thu, Nov 16, 2017 at 1:24 PM, diekmanu notifications@github.com wrote:
Not working for us in v4.1.4 build 173 (gba38b84)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/snipe/snipe-it/issues/4413#issuecomment-344843142,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZYt5xqLnwzZ1oYzJyYphRPp5jEl1codks5s2-oqgaJpZM4QYFtC
.
--
“BTW: Take 2 Minutes to learn about Rahi Systems
https://vimeo.com/184623096”.
Ajay Kakde* |* Sr. Software Engineer
O: +91-750 777 2500 | M: +91-997 502 8678
E: ajay.[email protected]
Skype: rahi.ajay
www.rahisystems.com http://www.rahisystems.com
<#UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_UNIQUE_ID_SafeHtmlFilter_>
https://www.facebook.com/RahiSystems/ https://twitter.com/Rahi_Systems
https://www.linkedin.com/company/rahi-systems
http://rahisystems.com/blog/
Sorry but no, just give them a little more time to figure out how to fix it.
Just monitor this thread and watch out for a commit ;)
@uknzaeinozpas - thanks so much. You’re right, we’re working on this - and when it’s fixed, this thread will be updated. It’s weirdly hard to reproduce, but we’re close to a fix
Had the same issue, Glad to see yo're already aware of it. One thing I love is when the creators are highly active in fixing bugs and releasing new versions.
Version v4.1.4 build 173 (gba38b84) clean install, same issue, only seat 1 checks out. Thankgs again Snipe admins :)
@snipe Hey, if you need anything to help narrow it down, the issue occurs for me each and every time in my environment (unfortunately).
Hi all,
Can any (or all) of you try try changing this section in app/Models/License.php from:
to:
public function freeSeat()
{
return $this->licenseseats()
->whereNull('deleted_at')
->where(function ($query) {
$query->whereNull('assigned_to')
->whereNull('asset_id');
})
->first();
}
And see if that fixes it for you?
@snipe Sure, I'll try that now. Do I need to do anything afterwards? cache:clear etc.?
@TheVakman you shouldn't have to, no.
All right, that's a negative on that change working.
Can you add a new test license and see if it works with that one? (Checkout multiple seats). Also can you tell me if it matters if you checkout to a user or you checkout to an asset?
It seems to be OK with a new license. I assigned five out of thirty seats on a test license, with this modification.
I've only ever assigned to users. I'll try to an asset.
I can checkout to an asset on the new test license, without any issues.
However, the same issue occurs when checking out existing licenses to an asset.
Thanks very much for helping us narrow it down. Hoping have a patch for you tonight.
@snipe No, thank you! I'll test it out tonight, if I see it within the next few hours while I'm up!
Can you pull from develop easily? If so, give that a shot.
Will do, just fixing something (non-SnipeIT related) and then I'll try it out!
(Same goes for anyone else subscribed to this thread - if you can test the develop branch to see if this resolves your issue, I'll merge into master ASAP)
@snipe I'll jump on Gitter. I'm getting some errors. I haven't tried the upgrade script before, was still doing the composer.phar install etc. etc.
As discussed on Gitter, it's looking good here for this bug on the develop branch!
Awesome, thanks for the testing help, @TheVakman! I'm going to package this up in a release shortly.
Hi all, Just got back into the office. I'm guessing you've merged into master, I ran the git upgrade and it now appears to be working. On an old licence entry as well.
Thank you for fixing this so fast.
@Loopmail great, thanks for the confirmation of the fix! (It's not only merged into master, it's in the latest release :) )
Thanks again to everyone who helped debug this issue. The turnaround wouldn't have been nearly as fast without your help. ❤️
mist have been just before you posted new release, im still on 4.1.4-173. upgrading now :)
Life (and Snipe-IT releases) comes at you fast ;)
Not working for us in 4.1.5. At least not what the original issue was all about. Our asset tags are related to seat numbers. So an asset with this asset tag "FQC-02462-8013" will be assigned to seat "13".
It wasn't really aboout the next free license assignment which was fixed in commit 17405f5
@diekmanu that's a different issue, really. The license seats were never intended to be important, they just represent a record in the join table. We had to de-norm the licenses page, as it was too complex of a query for folks who have 50k+ assets. I'll need to think about how we add that functionality in without re-introducing the query issues.
We do this because it reduces the risk of having duplicate license assignments.
Perhaps it's easier to implement something like this #1438 . Then the seat <> asset-tag relationship we use could be dropped.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!