Moved new_id setting to outside input iteration in add_fields click function
Moved new_id setting to outside input iteration in add_fields click function

This is due to it possibly being called across a second-break (i.e. 00:00:01 -> 00:00:02) and therefore giving a different id to the inputs of the element.

Potential fix for #1686

siddharth28/spree,progsri/spree,Mayvenn/spree,siddharth28/spree,shekibobo/spree,sunny2601/spree,berkes/spree,zaeznet/spree,pervino/spree,fahidnasir/spree,jaspreet21anand/spree,raow/spree,welitonfreitas/spree,grzlus/spree,HealthWave/spree,woboinc/spree,gautamsawhney/spree,gregoryrikson/spree-sample,lsirivong/solidus,woboinc/spree,knuepwebdev/FloatTubeRodHolders,hifly/spree,knuepwebdev/FloatTubeRodHolders,yushine/spree,jeffboulet/spree,surfdome/spree,shioyama/spree,vinayvinsol/spree,dandanwei/spree,Mayvenn/spree,pervino/solidus,CJMrozek/spree,carlesjove/spree,derekluo/spree,Engeltj/spree,richardnuno/solidus,omarsar/spree,calvinl/spree,fahidnasir/spree,radarseesradar/spree,TrialGuides/spree,gautamsawhney/spree,imella/spree,caiqinghua/spree,devilcoders/solidus,kewaunited/spree,pjmj777/spree,shaywood2/spree,vulk/spree,piousbox/spree,vcavallo/spree,vmatekole/spree,sliaquat/spree,jhawthorn/spree,vinsol/spree,grzlus/solidus,richardnuno/solidus,jparr/spree,joanblake/spree,jsurdilla/solidus,Lostmyname/spree,judaro13/spree-fork,builtbybuffalo/spree,fahidnasir/spree,jimblesm/spree,CJMrozek/spree,ckk-scratch/solidus,ckk-scratch/solidus,sfcgeorge/spree,yomishra/pce,yomishra/pce,jimblesm/spree,Migweld/spree,degica/spree,vinsol/spree,jordan-brough/solidus,Kagetsuki/spree,Hawaiideveloper/shoppingcart,AgilTec/spree,lzcabrera/spree-1-3-stable,archSeer/spree,alepore/spree,zamiang/spree,HealthWave/spree,mleglise/spree,agient/agientstorefront,Lostmyname/spree,dafontaine/spree,Antdesk/karpal-spree,vmatekole/spree,patdec/spree,odk211/spree,codesavvy/sandbox,Migweld/spree,vulk/spree,jasonfb/spree,caiqinghua/spree,jordan-brough/solidus,forkata/solidus,locomotivapro/spree,madetech/spree,thogg4/spree,rakibulislam/spree,yushine/spree,zamiang/spree,pulkit21/spree,KMikhaylovCTG/spree,PhoenixTeam/spree_phoenix,siddharth28/spree,net2b/spree,trigrass2/spree,knuepwebdev/FloatTubeRodHolders,agient/agientstorefront,devilcoders/solidus,tesserakt/clean_spree,agient/agientstorefront,TimurTarasenko/spree,vcavallo/spree,edgward/spree,Ropeney/spree,forkata/solidus,JDutil/spree,volpejoaquin/spree,keatonrow/spree,robodisco/spree,alvinjean/spree,abhishekjain16/spree,berkes/spree,rbngzlv/spree,trigrass2/spree,piousbox/spree,rakibulislam/spree,judaro13/spree-fork,abhishekjain16/spree,wolfieorama/spree,maybii/spree,TrialGuides/spree,gautamsawhney/spree,freerunningtech/spree,net2b/spree,welitonfreitas/spree,Hawaiideveloper/shoppingcart,jspizziri/spree,lyzxsc/spree,hoanghiep90/spree,pervino/spree,net2b/spree,madetech/spree,shioyama/spree,reinaris/spree,quentinuys/spree,softr8/spree,Machpowersystems/spree_mach,FadliKun/spree,priyank-gupta/spree,delphsoft/spree-store-ballchair,forkata/solidus,tancnle/spree,piousbox/spree,brchristian/spree,carlesjove/spree,joanblake/spree,jordan-brough/solidus,adaddeo/spree,tancnle/spree,surfdome/spree,lyzxsc/spree,fahidnasir/spree,kewaunited/spree,ahmetabdi/spree,priyank-gupta/spree,kitwalker12/spree,Ropeney/spree,FadliKun/spree,keatonrow/spree,alvinjean/spree,njerrywerry/spree,Senjai/spree,lzcabrera/spree-1-3-stable,PhoenixTeam/spree_phoenix,codesavvy/sandbox,bonobos/solidus,ujai/spree,adaddeo/spree,PhoenixTeam/spree_phoenix,DynamoMTL/spree,camelmasa/spree,abhishekjain16/spree,grzlus/spree,orenf/spree,calvinl/spree,brchristian/spree,zamiang/spree,lsirivong/spree,NerdsvilleCEO/spree,hifly/spree,locomotivapro/spree,yomishra/pce,pulkit21/spree,net2b/spree,CJMrozek/spree,grzlus/spree,DynamoMTL/spree,progsri/spree,trigrass2/spree,xuewenfei/solidus,AgilTec/spree,jsurdilla/solidus,jordan-brough/spree,bjornlinder/Spree,biagidp/spree,Engeltj/spree,pervino/spree,jsurdilla/solidus,StemboltHQ/spree,azclick/spree,Senjai/solidus,pervino/solidus,dotandbo/spree,lzcabrera/spree-1-3-stable,miyazawatomoka/spree,softr8/spree,odk211/spree,degica/spree,TimurTarasenko/spree,nooysters/spree,Hates/spree,miyazawatomoka/spree,Senjai/spree,ramkumar-kr/spree,odk211/spree,DarkoP/spree,bricesanchez/spree,brchristian/spree,berkes/spree,StemboltHQ/spree,DynamoMTL/spree,LBRapid/spree,robodisco/spree,maybii/spree,forkata/solidus,edgward/spree,sliaquat/spree,jimblesm/spree,Boomkat/spree,APohio/spree,calvinl/spree,richardnuno/solidus,Senjai/solidus,lyzxsc/spree,CJMrozek/spree,grzlus/solidus,jspizziri/spree,sunny2601/spree,Nevensoft/spree,scottcrawford03/solidus,APohio/spree,TrialGuides/spree,alejandromangione/spree,kitwalker12/spree,firman/spree,madetech/spree,ckk-scratch/solidus,gautamsawhney/spree,cutefrank/spree,biagidp/spree,Migweld/spree,calvinl/spree,jasonfb/spree,shaywood2/spree,mleglise/spree,omarsar/spree,Boomkat/spree,sideci-sample/sideci-sample-spree,jordan-brough/spree,sideci-sample/sideci-sample-spree,ujai/spree,vinayvinsol/spree,joanblake/spree,robodisco/spree,omarsar/spree,piousbox/spree,kewaunited/spree,moneyspyder/spree,progsri/spree,groundctrl/spree,alejandromangione/spree,surfdome/spree,SadTreeFriends/spree,Machpowersystems/spree_mach,Ropeney/spree,firman/spree,imella/spree,caiqinghua/spree,gregoryrikson/spree-sample,JuandGirald/spree,radarseesradar/spree,PhoenixTeam/spree_phoenix,mindvolt/spree,woboinc/spree,KMikhaylovCTG/spree,urimikhli/spree,grzlus/spree,vinayvinsol/spree,abhishekjain16/spree,lsirivong/solidus,TrialGuides/spree,lyzxsc/spree,alvinjean/spree,KMikhaylovCTG/spree,AgilTec/spree,APohio/spree,karlitxo/spree,hifly/spree,archSeer/spree,edgward/spree,DarkoP/spree,RatioClothing/spree,pervino/spree,ramkumar-kr/spree,jimblesm/spree,degica/spree,rbngzlv/spree,sfcgeorge/spree,RatioClothing/spree,athal7/solidus,richardnuno/solidus,JuandGirald/spree,orenf/spree,reinaris/spree,lsirivong/solidus,pervino/solidus,JDutil/spree,derekluo/spree,Senjai/spree,edgward/spree,bonobos/solidus,nooysters/spree,tomash/spree,vulk/spree,sliaquat/spree,beni55/spree,jspizziri/spree,maybii/spree,SadTreeFriends/spree,Senjai/solidus,raow/spree,Lostmyname/spree,rajeevriitm/spree,jparr/spree,tomash/spree,Mayvenn/spree,njerrywerry/spree,bricesanchez/spree,jeffboulet/spree,ahmetabdi/spree,progsri/spree,useiichi/spree,alepore/spree,hifly/spree,jhawthorn/spree,karlitxo/spree,bonobos/solidus,karlitxo/spree,gregoryrikson/spree-sample,yiqing95/spree,patdec/spree,dotandbo/spree,firman/spree,shioyama/spree,reidblomquist/spree,RatioClothing/spree,tailic/spree,welitonfreitas/spree,cutefrank/spree,alvinjean/spree,derekluo/spree,APohio/spree,NerdsvilleCEO/spree,Engeltj/spree,njerrywerry/spree,watg/spree,jordan-brough/solidus,project-eutopia/spree,delphsoft/spree-store-ballchair,reinaris/spree,odk211/spree,locomotivapro/spree,freerunningtech/spree,shekibobo/spree,lsirivong/spree,jsurdilla/solidus,alepore/spree,shekibobo/spree,vinsol/spree,raow/spree,SadTreeFriends/spree,hoanghiep90/spree,Hawaiideveloper/shoppingcart,carlesjove/spree,beni55/spree,azclick/spree,mindvolt/spree,Lostmyname/spree,assembledbrands/spree,AgilTec/spree,project-eutopia/spree,derekluo/spree,ahmetabdi/spree,surfdome/spree,miyazawatomoka/spree,shekibobo/spree,moneyspyder/spree,xuewenfei/solidus,Hates/spree,Engeltj/spree,jasonfb/spree,StemboltHQ/spree,ujai/spree,ramkumar-kr/spree,TimurTarasenko/spree,pulkit21/spree,tailic/spree,bricesanchez/spree,njerrywerry/spree,quentinuys/spree,tesserakt/clean_spree,useiichi/spree,tesserakt/clean_spree,yiqing95/spree,jaspreet21anand/spree,athal7/solidus,useiichi/spree,hoanghiep90/spree,ayb/spree,thogg4/spree,HealthWave/spree,project-eutopia/spree,cutefrank/spree,KMikhaylovCTG/spree,sliaquat/spree,rajeevriitm/spree,softr8/spree,wolfieorama/spree,raow/spree,DynamoMTL/spree,brchristian/spree,biagidp/spree,tailic/spree,ahmetabdi/spree,orenf/spree,judaro13/spree-fork,jhawthorn/spree,assembledbrands/spree,mindvolt/spree,mleglise/spree,zaeznet/spree,dotandbo/spree,dafontaine/spree,madetech/spree,gregoryrikson/spree-sample,delphsoft/spree-store-ballchair,JuandGirald/spree,firman/spree,camelmasa/spree,builtbybuffalo/spree,sideci-sample/sideci-sample-spree,karlitxo/spree,FadliKun/spree,azranel/spree,orenf/spree,hoanghiep90/spree,DarkoP/spree,maybii/spree,urimikhli/spree,rakibulislam/spree,sfcgeorge/spree,NerdsvilleCEO/spree,Nevensoft/spree,carlesjove/spree,mindvolt/spree,keatonrow/spree,rajeevriitm/spree,yushine/spree,JDutil/spree,jeffboulet/spree,locomotivapro/spree,bjornlinder/Spree,Antdesk/karpal-spree,patdec/spree,lsirivong/spree,shaywood2/spree,groundctrl/spree,azranel/spree,cutefrank/spree,vulk/spree,bonobos/solidus,berkes/spree,Machpowersystems/spree_mach,CiscoCloud/spree,scottcrawford03/solidus,reidblomquist/spree,moneyspyder/spree,priyank-gupta/spree,useiichi/spree,Hawaiideveloper/shoppingcart,kewaunited/spree,tomash/spree,beni55/spree,radarseesradar/spree,archSeer/spree,azclick/spree,jaspreet21anand/spree,miyazawatomoka/spree,TimurTarasenko/spree,scottcrawford03/solidus,NerdsvilleCEO/spree,pulkit21/spree,pjmj777/spree,quentinuys/spree,volpejoaquin/spree,Hates/spree,bjornlinder/Spree,Mayvenn/spree,jparr/spree,thogg4/spree,assembledbrands/spree,Kagetsuki/spree,vinayvinsol/spree,alejandromangione/spree,codesavvy/sandbox,CiscoCloud/spree,reinaris/spree,shaywood2/spree,athal7/solidus,azclick/spree,Arpsara/solidus,DarkoP/spree,ayb/spree,vinsol/spree,ayb/spree,dandanwei/spree,yiqing95/spree,rbngzlv/spree,omarsar/spree,dandanwei/spree,mleglise/spree,nooysters/spree,SadTreeFriends/spree,vmatekole/spree,vmatekole/spree,groundctrl/spree,reidblomquist/spree,builtbybuffalo/spree,LBRapid/spree,ayb/spree,dotandbo/spree,jspizziri/spree,vcavallo/spree,CiscoCloud/spree,Arpsara/solidus,adaddeo/spree,alejandromangione/spree,azranel/spree,jordan-brough/spree,camelmasa/spree,CiscoCloud/spree,ckk-scratch/solidus,dafontaine/spree,Hates/spree,xuewenfei/solidus,quentinuys/spree,radarseesradar/spree,zamiang/spree,watg/spree,project-eutopia/spree,yushine/spree,adaddeo/spree,dandanwei/spree,scottcrawford03/solidus,freerunningtech/spree,tancnle/spree,tomash/spree,jeffboulet/spree,moneyspyder/spree,kitwalker12/spree,lsirivong/spree,LBRapid/spree,camelmasa/spree,Boomkat/spree,Senjai/solidus,JuandGirald/spree,agient/agientstorefront,beni55/spree,Boomkat/spree,volpejoaquin/spree,rbngzlv/spree,Ropeney/spree,codesavvy/sandbox,wolfieorama/spree,vcavallo/spree,Kagetsuki/spree,robodisco/spree,imella/spree,wolfieorama/spree,pervino/solidus,jparr/spree,zaeznet/spree,welitonfreitas/spree,xuewenfei/solidus,patdec/spree,azranel/spree,priyank-gupta/spree,JDutil/spree,pjmj777/spree,athal7/solidus,thogg4/spree,softr8/spree,jaspreet21anand/spree,volpejoaquin/spree,devilcoders/solidus,Kagetsuki/spree,delphsoft/spree-store-ballchair,builtbybuffalo/spree,grzlus/solidus,siddharth28/spree,Nevensoft/spree,yiqing95/spree,tesserakt/clean_spree,Nevensoft/spree,grzlus/solidus,FadliKun/spree,keatonrow/spree,joanblake/spree,trigrass2/spree,jasonfb/spree,watg/spree,devilcoders/solidus,lsirivong/solidus,sunny2601/spree,reidblomquist/spree,Migweld/spree,tancnle/spree,caiqinghua/spree,nooysters/spree,rakibulislam/spree,Arpsara/solidus,ramkumar-kr/spree,archSeer/spree,urimikhli/spree,sunny2601/spree,rajeevriitm/spree,dafontaine/spree,sfcgeorge/spree,Antdesk/karpal-spree,zaeznet/spree,Arpsara/solidus,groundctrl/spree