List VV properly differentiates null vs 0 (#91088)

This commit is contained in:
Lucy
2025-05-12 13:16:10 -04:00
committed by Roxy
parent 68fb0d6a1d
commit 816d71884a

View File

@@ -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)]) "