BCCHR-IT / custom-template-engine

REDCap module that allows you to create HTML templates and fill them with record data from your project. You can download the filled templates as a PDF, which are saved to the File Repository.
MIT License
10 stars 7 forks source link

Template engine is not populating records in the drop down #46

Closed debbieb72 closed 1 year ago

debbieb72 commented 1 year ago

A few weeks ago, the template engine stopped populating records from which to select in the dropdown, though is indicating the correct number of records available.

This screenshot shows that 22 record are available (which is correct), however the dropdown is not populating with any records from which to select to populate the template. The problem seems to be somewhere within in this code repository. Could you please advise? Thank you. image

RobertAndersonHunt-PeterMac commented 1 year ago

Hi team,

Same issue for us in our instance -

image

The dropdown is not appearing on element click, but the li elements have been populated on page load: image

It looks like this might be linked to the recent change to Bootstrap 5; hovering over the relevant div element, the following error comes up: image

Looks like the solve here would be to give the hidden list a title or name.

BCCHR-IT commented 1 year ago

Hello @debbieb72 and @RobertAndersonHunt-PeterMac ,

This is Dan Evans, the Dev team lead here at BCCHR. Thank you for the report.

I haven't been able to replicate this issue in our dev environment, likely because I'm using an old bootstrap. Do either of you have the capacity to test the suggested "name the list" fix?

jasonrightmyer commented 1 year ago

Dev Team,

It appears that the module is employing the "bootstrap-select" plugin (v1.13.15), which supports Bootstrap 4.0 only. A Bootstrap 5.0 compatible version is in beta (v1.14.0-beta3). A quick fix appears to fix the problem, but its not fully tested (see below). A stable plugin release is eventually required.

Replace lines 2565, 2566 in CustomTemplateEngine.php

with the following

`

`
BCCHR-IT commented 1 year ago

@debbieb72 v3.2.1 -- soon to be released -- will include the changes to fix this bug. Thank you to @jasonrightmyer for the assist!

BCCHR-IT commented 1 year ago

v3.2.1 has been submitted for review, so will close this issue.