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

[Bug]: Incorrect display of the product on the user's viewing page / v0.10 #935

Closed
Tracked by #952
MrWeez opened this issue Mar 3, 2024 · 14 comments · Fixed by #957 or #952
Closed
Tracked by #952

[Bug]: Incorrect display of the product on the user's viewing page / v0.10 #935

MrWeez opened this issue Mar 3, 2024 · 14 comments · Fixed by #957 or #952
Labels
Bug / Fix Something isn't working and may need a fix Medium Priority Needs attention, not urgent

Comments

@MrWeez
Copy link
Collaborator

MrWeez commented Mar 3, 2024

What is your request about?

The server product name is displayed incorrectly on the /admin/users/<user_id> page. The error is like in this issue, but in a different place.

Branch

development

Solution idea

No response

Controlpanel Logs

No response

Additional Info

image

@MrWeez MrWeez added the Bug / Fix Something isn't working and may need a fix label Mar 3, 2024
@sybetjeh sybetjeh added the Low Priority Can wait, not urgent. Handle when possible label Apr 3, 2024
@S0ly
Copy link
Member

S0ly commented May 17, 2024

im confused where do you see it display incorrectly ?
because the name is here maybe because it says product and not description ?

@S0ly S0ly added Medium Priority Needs attention, not urgent and removed Low Priority Can wait, not urgent. Handle when possible labels May 17, 2024
@MrWeez
Copy link
Collaborator Author

MrWeez commented May 17, 2024

im confused where do you see it display incorrectly ? because the name is here maybe because it says product and not description ?

It displays the description of the product, not its name. This problem was elsewhere, I attached a link in the message above.

@S0ly
Copy link
Member

S0ly commented May 17, 2024

yes but the name is not already here ?
image

@MrWeez
Copy link
Collaborator Author

MrWeez commented May 17, 2024

yes but the name is not already here ? image

This is the name of the server, not its product

@S0ly
Copy link
Member

S0ly commented May 17, 2024

ho okay I'm still confused xD I will add it to the panel fix branch

@kenshin133
Copy link

kenshin133 commented May 18, 2024

To show this more clearly,
Here is the product :

image
and here is under my user (this is in main branch.. but the issue is not new)

image

You will see under "config" (Which is now "product" in .10) It says "description1" when it should say "name1"

@S0ly
Copy link
Member

S0ly commented May 18, 2024

hooo okay

@kenshin133
Copy link

Checked into this a bit, in admin/users/show.blade.php which seems to be the right location for this, the datatables are calling the right thing:
{
data: 'resources',
name: 'product.name'
},

            In database product.name is correct. Will check into this a bit more. 

@kenshin133
Copy link

kenshin133 commented May 22, 2024

I figured out the fix, but dont know why it works so someone else needs to follow up on this one.

The change is line 231 of app/Http/Controllers/Admin/ServerController.php

Changed from "return $server->product->description;"

to "return $server->product->name;"

@S0ly
Copy link
Member

S0ly commented May 22, 2024

If you get the description in’s tread of the name your fix make sense

@kenshin133
Copy link

The fix makes sense and that's how I found it, but I'm not 100% sure this value isn't used elsewhere.

So I've posted in hopes someone else quickly gives it a pass or fail when they get around to it. its a pretty minor issue. (and possibly up to preference)

@kenshin133
Copy link

kenshin133 commented May 22, 2024

#957 may fix this

@MrWeez
Copy link
Collaborator Author

MrWeez commented May 22, 2024

@S0ly can you link the issue to the PR? Thx.

@S0ly
Copy link
Member

S0ly commented May 22, 2024

@MrWeez yes thanks, ask @1day2die for permission so you can do it 😅

@MrWeez MrWeez closed this as completed May 22, 2024
@S0ly S0ly linked a pull request May 22, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug / Fix Something isn't working and may need a fix Medium Priority Needs attention, not urgent
Projects
None yet
4 participants