{"id":1263222,"date":"2017-04-02T11:50:29","date_gmt":"2017-04-02T18:50:29","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/"},"modified":"2017-04-05T15:42:53","modified_gmt":"2017-04-05T22:42:53","slug":"optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/","title":{"rendered":"Optout checkbox for RSVP only affects first attendee when updating"},"content":{"rendered":"<p>We have detected an inconsistency when RSVP tickets are updated and the checkbox &#8220;Don&#8217;t show me in public attendee list&#8221; (optout checkbox) value is changed. The test scenario is as follows:<\/p>\n<p>&#8211; There is an event with one RSVP ticket type having a couple of custom event fields.<br \/>\n&#8211; A user enters two (or more) attendees, does not check the &#8220;Hide from public attendee list&#8221;, enters values in the name\/email fields and presses the &#8220;RSVP&#8221; button to create the tickets.<br \/>\n&#8211; All tickets are saved in the database correctly and are displayed in the attendee list on the events page.<br \/>\n&#8211; The user clicks the &#8220;View my RSVPs&#8221; link to enter the View my RSVPs page.<br \/>\n&#8211; The page displays all the attendees the user previously registered.<br \/>\n&#8211; The user checks the &#8220;Hide from public attendee list&#8221; and presses the &#8220;Save RSVPs&#8221; button.<br \/>\n&#8211; When returning to the events page, only one of the attendees is hidden from the attendee list on the events page, all other are displayed. We have confirmed this in the database, the meta value &#8220;_tribe_rsvp_attendee_optout&#8221; is only set for one of the attendee tickets, all other have a NULL value.<\/p>\n<p>When the checkbox &#8220;Hide from public attendee list&#8221; is displayed only once for any number of listed attendees, we (and users) normally assume that the checkbox will affect all attendees in the list in a similar manner. You software seems to only affect exactly one attendee. We think this is a bug in your code. If only one attendee is updated, there should be an separate optout checkbox for each attendee in the list, otherwise the user interface and implemented code is not consistent.<\/p>\n<p>We have found the exact location of the bug in your code and added code to set the optout flag for all attendees present in the list, and this code change passes all our test scenarios successfully.<\/p>\n<p>We also found in your code that the optout flag for attendees is set multiple times in the same save operation, first in Tribe__Tickets__RSVP::update_attendee_data() and immediately after that in a call to Tribe__Tickets_Plus__Tickets_View::save_meta(), but the optout values are retrieved\/handled in slightly different ways, which is a possible cause for more bugs.<\/p>\n<p>Please look into this issue.<\/p>\n","protected":false},"template":"","class_list":["post-1263222","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Optout checkbox for RSVP only affects first attendee when updating -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Optout checkbox for RSVP only affects first attendee when updating -\" \/>\n<meta property=\"og:description\" content=\"We have detected an inconsistency when RSVP tickets are updated and the checkbox &#8220;Don&#8217;t show me in public attendee list&#8221; (optout checkbox) value is changed. The test scenario is as follows: &#8211; There is an event with one RSVP ticket type having a couple of custom event fields. &#8211; A user enters two (or more) [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/\" \/>\n<meta property=\"article:modified_time\" content=\"2017-04-05T22:42:53+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/\",\"name\":\"Optout checkbox for RSVP only affects first attendee when updating -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-04-02T18:50:29+00:00\",\"dateModified\":\"2017-04-05T22:42:53+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Optout checkbox for RSVP only affects first attendee when updating\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Optout checkbox for RSVP only affects first attendee when updating -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/","og_locale":"en_US","og_type":"article","og_title":"Optout checkbox for RSVP only affects first attendee when updating -","og_description":"We have detected an inconsistency when RSVP tickets are updated and the checkbox &#8220;Don&#8217;t show me in public attendee list&#8221; (optout checkbox) value is changed. The test scenario is as follows: &#8211; There is an event with one RSVP ticket type having a couple of custom event fields. &#8211; A user enters two (or more) [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/","article_modified_time":"2017-04-05T22:42:53+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/","name":"Optout checkbox for RSVP only affects first attendee when updating -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-04-02T18:50:29+00:00","dateModified":"2017-04-05T22:42:53+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/optout-checkbox-for-rsvp-only-affects-first-attendee-when-updating\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Optout checkbox for RSVP only affects first attendee when updating"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1263222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1263222\/revisions"}],"predecessor-version":[{"id":1265456,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1263222\/revisions\/1265456"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1263222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}