mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
Merge pull request #9522 from Little-119/security-records-console-fix
Fix security records consoles' inability to search fingerprints
This commit is contained in:
committed by
Chompstation Bot
parent
c4e352dad2
commit
80da08f21c
@@ -317,16 +317,16 @@
|
|||||||
if(!length(t1))
|
if(!length(t1))
|
||||||
return
|
return
|
||||||
|
|
||||||
for(var/datum/data/record/R in data_core.security)
|
for(var/datum/data/record/R in data_core.general)
|
||||||
if(t1 == lowertext(R.fields["name"]) || t1 == lowertext(R.fields["id"]) || t1 == lowertext(R.fields["b_dna"]))
|
if(t1 == lowertext(R.fields["name"]) || t1 == lowertext(R.fields["id"]) || t1 == lowertext(R.fields["fingerprint"]))
|
||||||
active2 = R
|
active1 = R
|
||||||
break
|
break
|
||||||
if(!active2)
|
if(!active1)
|
||||||
set_temp("Security record not found. You must enter the person's exact name, ID or DNA.", "danger")
|
set_temp("Security record not found. You must enter the person's exact name, ID, or fingerprint.", "danger")
|
||||||
return
|
return
|
||||||
for(var/datum/data/record/E in data_core.general)
|
for(var/datum/data/record/E in data_core.security)
|
||||||
if(E.fields["name"] == active2.fields["name"] && E.fields["id"] == active2.fields["id"])
|
if(E.fields["name"] == active1.fields["name"] && E.fields["id"] == active1.fields["id"])
|
||||||
active1 = E
|
active2 = E
|
||||||
break
|
break
|
||||||
screen = SEC_DATA_RECORD
|
screen = SEC_DATA_RECORD
|
||||||
if("print_p")
|
if("print_p")
|
||||||
|
|||||||
Reference in New Issue
Block a user