Answers.Body: <p>OK, my bad. I had to update the <code>nz.co.fuzion.extendedreport</code> extension, too.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-18T13:47:06.577Z
Answers.LastActivityDate: 2021-04-18T13:47:06.577Z
Answers.UserDisplayName: commonpike
Body: <p>Somewhere between 5.15 and 5.36, javascript starts breaking on all member reports.</p>
  <p>In the html body, javascript is searching for</p>
  <pre><code>$originalElement = $dateElement.siblings('#membership_join_date_from').hide(),
          date_format = $originalElement.attr('format'),
  </code></pre>
  <p>and later does</p>
  <pre><code>date_format.indexOf('m') &gt; -1
  </code></pre>
  <p>In my source, <code>membership_join_date_from</code> is not a sibling of $dateElement. it is nested inside a sibling <code>span.crm-form-date-wrapper</code> (and it doesnt have an attribute called <code>format</code>).</p>
  <p>So <code>date_format</code> is undefined and the error stops javascript execution; the form layout with tabs and such breaks, even showing the SQL output when generating results.</p>
  <p>Since nobody seems to have this, I am wondering if it is something with my reports ?</p>
  
Tags: <civireport><javascript><5.33.0>
Title: Member reports javascript broken after update
ThreadText: # Member reports javascript broken after update
  
  (Asked by: username_0 on 2021-04-18)
  
  Somewhere between 5.15 and 5.36, javascript starts breaking on all member reports.
  In the html body, javascript is searching for
  $originalElement = $dateElement.siblings('#membership_join_date_from').hide(),
          date_format = $originalElement.attr('format'),
  
  and later does
  date_format.indexOf('m') > -1
  
  In my source, membership_join_date_from is not a sibling of $dateElement. it is nested inside a sibling span.crm-form-date-wrapper (and it doesnt have an attribute called format).
  So date_format is undefined and the error stops javascript execution; the form layout with tabs and such breaks, even showing the SQL output when generating results.
  Since nobody seems to have this, I am wondering if it is something with my reports ?
  
  **Tags:** civireport, javascript, 5.33.0
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2021-04-18. Score: 1
  
  OK, my bad. I had to update the `nz.co.fuzion.extendedreport` extension, too.
  
  
  ---
  
  