snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.48k stars 3.07k forks source link

Created Company, cant associate user to company #14524

Open jkim-idtus opened 3 months ago

jkim-idtus commented 3 months ago

Debug mode

Describe the bug

Created the first company and confirmed it's listed in MariaDB. However, I can't seem to associate a user to the company as none are found.

Reproduction steps

  1. create company object
  2. edit any user
  3. attempt to tie user to company ...

Expected behavior

expecting to see the available list of companies to associate user with

Screenshots

snipeit_company_issue

Snipe-IT Version

v6.3.3 build 12903

Operating System

Windows

Web Server

IIS

PHP Version

8.0.30

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

snipe commented 3 months ago

Please provide us with the information requested at the Getting Help documentation: https://snipe-it.readme.io/docs/getting-help

Snipe-IT Documentation
Getting Help
If you're having trouble setting up Snipe-IT, don't worry!
jkim-idtus commented 3 months ago

Is there really logs needed when company exists and the issue is that clicking "company" within a user results with 0 results?

snipe commented 3 months ago

Yes, or else I wouldn't have asked for it. There are several reasons why you'd be getting 0 results, and the first place we look is browser and app logs, to see if you have something misconfigured (which is usually the case.)

snipe commented 3 months ago

That dropdown does an ajax request. If the URL is set incorrectly in the .env and it cannot retrieve the results, you'll see a browser console error. If there's something wrong on the server's side (missing column because migrations weren't run, etc) that will show up in the app logs.

I'm trying to help you, but you need to give me the info I need to be able to do so - and given I've been doing this for a decade, maybe don't question why I'm asking for something.