{"id":1067436,"date":"2016-02-04T04:41:31","date_gmt":"2016-02-04T12:41:31","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/"},"modified":"2016-02-24T08:35:03","modified_gmt":"2016-02-24T16:35:03","slug":"bug-the-validation-for-recurring-events-end-date-doesnt-work","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/","title":{"rendered":"Bug: The validation for recurring events end-date doesn&#039;t work"},"content":{"rendered":"<p>Hi,<br \/>\nit would seem that there is a bug in Events Calendar Pro -plugin. It doesn\u2019t validate the recurrence data. Here is more information about the bug<\/p>\n<p><strong>When it happens?<\/strong><br \/>\nIt happens both in the wp-admin view and also in front-end view of Community Events -plugins. So for example if user sets recurring event to end after certain amount of events, but doesn\u2019t enter any number (or enters string) into &lt;input name=&#8221;numberrecurrence[rules][0][end-count]\u201d&gt; field, the plugin generates recurring events without any end date.<\/p>\n<p><strong>Where it happens in the code?<\/strong><br \/>\nI think that the problem is in the file events-calendar-pro&gt;src&gt;resources&gt;js&gt;events-recurrence.js in row 67-68. There are the following lines of codes:<\/p>\n<pre><code>$( &#039;.eventForm&#039; )\n\t\t\t.on( &#039;submit&#039;, &#039;.wp-admin.events-cal #post&#039;, this.event.submit_validation )\n<\/code><\/pre>\n<p>The \u201dsubmit&#8221;-event never occur and that\u2019s why the function this.event.submit_validation() is never called. And that\u2019s why the recurring end dates is never validated.<\/p>\n<p>So can you please fix this as soon as possible!<\/p>\n<p>Thank you,<br \/>\nSauli Rajala<br \/>\nValu Digital Oy<\/p>\n","protected":false},"template":"","class_list":["post-1067436","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>Bug: The validation for recurring events end-date doesn&#039;t work -<\/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\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug: The validation for recurring events end-date doesn&#039;t work -\" \/>\n<meta property=\"og:description\" content=\"Hi, it would seem that there is a bug in Events Calendar Pro -plugin. It doesn\u2019t validate the recurrence data. Here is more information about the bug When it happens? It happens both in the wp-admin view and also in front-end view of Community Events -plugins. So for example if user sets recurring event to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-24T16:35:03+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/\",\"name\":\"Bug: The validation for recurring events end-date doesn&#039;t work -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-02-04T12:41:31+00:00\",\"dateModified\":\"2016-02-24T16:35:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/#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\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Bug: The validation for recurring events end-date doesn&#039;t work\"}]},{\"@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":"Bug: The validation for recurring events end-date doesn&#039;t work -","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\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/","og_locale":"en_US","og_type":"article","og_title":"Bug: The validation for recurring events end-date doesn&#039;t work -","og_description":"Hi, it would seem that there is a bug in Events Calendar Pro -plugin. It doesn\u2019t validate the recurrence data. Here is more information about the bug When it happens? It happens both in the wp-admin view and also in front-end view of Community Events -plugins. So for example if user sets recurring event to [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/","article_modified_time":"2016-02-24T16:35:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/","name":"Bug: The validation for recurring events end-date doesn&#039;t work -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-02-04T12:41:31+00:00","dateModified":"2016-02-24T16:35:03+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/bug-the-validation-for-recurring-events-end-date-doesnt-work\/#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":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"Bug: The validation for recurring events end-date doesn&#039;t work"}]},{"@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\/1067436","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1067436\/revisions"}],"predecessor-version":[{"id":1558269,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1067436\/revisions\/1558269"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1067436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}