List VV properly differentiates null vs 0

This commit is contained in:
MrMelbert
2025-05-09 23:51:21 -05:00
parent 81ef4e740e
commit 92c9a72b8a
@@ -5,10 +5,10 @@
if(islist(owner))
var/list/list_owner = owner
var/index = name
if (value)
name = list_owner[name] //name is really the index until this line
else
if (isnull(value))
value = list_owner[name]
else
name = list_owner[name] //name is really the index until this line
. = "<li style='backgroundColor:white'>([VV_HREF_TARGET_1V(owner, VV_HK_LIST_EDIT, "E", index)]) ([VV_HREF_TARGET_1V(owner, VV_HK_LIST_CHANGE, "C", index)]) ([VV_HREF_TARGET_1V(owner, VV_HK_LIST_REMOVE, "-", index)]) "
else
. = "<li style='backgroundColor:white'>([VV_HREF_TARGET_1V(owner, VV_HK_BASIC_EDIT, "E", name)]) ([VV_HREF_TARGET_1V(owner, VV_HK_BASIC_CHANGE, "C", name)]) ([VV_HREF_TARGET_1V(owner, VV_HK_BASIC_MASSEDIT, "M", name)]) "