Weol / wuma

A Garry's Mod server addon for managing usergroup- and user-specific restrictions, limits, and loadouts
Apache License 2.0
15 stars 7 forks source link

Data save issue #24

Closed St11l closed 5 years ago

St11l commented 5 years ago

Hello. If set limits and rejoin, then open list of usergroup limits and click on another usergroup- the list becomes empty. Lua error appears if press the RMB

https://i.imgur.com/uJ2LocU.gifv

Weol commented 5 years ago

Hi, can you open your console and copy the error that appears when you do this? Also, when you rejoin after this happens, does the limit appear again?

St11l commented 5 years ago

[ERROR] addons/ulx_wuma/lua/wuma/client/vgui/vgui_limits.lua:152: attempt to index local 'item' (a nil value)

  1. RightClickFunction - addons/ulx_wuma/lua/wuma/client/vgui/vgui_limits.lua:152
    1. OnRowRightClick - addons/ulx_wuma/lua/wuma/client/vgui/vgui_dataview.lua:104
    2. unknown - lua/vgui/dlistview_line.lua:74
St11l commented 5 years ago

After rejoin it repeats. All limits works, but in menu appears error

Weol commented 5 years ago

Okay, then this is a client-side issue. I will fix this, thank you for letting me know

Weol commented 5 years ago

I have pushed a fix for this: fd1e291e90c6f8fe5b4f6d77b152cfd4e3287883

Weol commented 5 years ago

Would be nice if you could confirm that this is no longer an issue

St11l commented 5 years ago

Thank u, error solved. But one more problem remained

If set limits and rejoin, then open list of usergroup limits and click on another usergroup - the list becomes empty

Weol commented 5 years ago

Do the limits appear again if you click back to the previously selected usergroup?

St11l commented 5 years ago

No. Limits work fine, but this error only in menu