[MIRROR] fixed incorrect arguments being sent to employment record computer (#11068)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-06-14 11:49:40 -07:00
committed by GitHub
parent 37784ae9c8
commit 165014027d
2 changed files with 2 additions and 2 deletions

View File

@@ -216,7 +216,7 @@
set_temp("All employment records deleted.") set_temp("All employment records deleted.")
if("sync_r") if("sync_r")
if(active1) if(active1)
set_temp(client_update_record(src,active1,ui.user)) set_temp(client_update_record(src,ui.user))
if("edit_notes") if("edit_notes")
// The modal input in tgui is busted for this sadly... // The modal input in tgui is busted for this sadly...
var/new_notes = strip_html_simple(tgui_input_text(ui.user,"Enter new information here.","Character Preference", html_decode(active1.fields["notes"]), MAX_RECORD_LENGTH, TRUE, prevent_enter = TRUE), MAX_RECORD_LENGTH) var/new_notes = strip_html_simple(tgui_input_text(ui.user,"Enter new information here.","Character Preference", html_decode(active1.fields["notes"]), MAX_RECORD_LENGTH, TRUE, prevent_enter = TRUE), MAX_RECORD_LENGTH)

View File

@@ -19,7 +19,7 @@ var/global/client_record_update_lock = FALSE
if(!COM || QDELETED(COM)) if(!COM || QDELETED(COM))
return "Invalid console" return "Invalid console"
if(jobban_isbanned(user, "Records") ) if(jobban_isbanned(user, JOB_RECORDS) )
COM.visible_message(span_notice("\The [COM] buzzes!")) COM.visible_message(span_notice("\The [COM] buzzes!"))
playsound(COM, 'sound/machines/deniedbeep.ogg', 50, 0) playsound(COM, 'sound/machines/deniedbeep.ogg', 50, 0)
return "Update syncronization denied (OOC: You are banned from editing records)" return "Update syncronization denied (OOC: You are banned from editing records)"