From 3a9fbc0a90d3aca6c6e573e0fef10744cd0d57d2 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sun, 26 Feb 2023 21:23:03 +0100 Subject: [PATCH] [MIRROR] Fixes text input fields not working on copied paper. [MDB IGNORE] (#19548) * Fixes text input fields not working on copied paper. (#73633) ## About The Pull Request Fixes #71698 The paper copying proc was incomplete and didn't copy over the total field count, which is used for sanity checking/user input verifying. Because this wasn't copied over, none of the copied fields passed validation checks for text input and the ui_act would have rejected the inputs as invalid. ## Why It's Good For The Game I feex. ## Changelog :cl: fix: Fixes broken input fields on photocopied paper. /:cl: * Fixes text input fields not working on copied paper. --------- Co-authored-by: Timberpoes --- code/modules/paperwork/paper.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/paperwork/paper.dm b/code/modules/paperwork/paper.dm index ec5430f9b1b..91acfd15b51 100644 --- a/code/modules/paperwork/paper.dm +++ b/code/modules/paperwork/paper.dm @@ -143,7 +143,7 @@ for(var/datum/paper_field/text as anything in new_paper.raw_field_input_data) text.field_data.colour = new_color - + new_paper.input_field_count = input_field_count new_paper.raw_stamp_data = copy_raw_stamps() new_paper.stamp_cache = stamp_cache?.Copy() new_paper.update_icon_state()