Compare commits

...

3 Commits

2 changed files with 17 additions and 0 deletions

View File

@ -8949,6 +8949,7 @@ $post['speciality'] = $post['speciality'];
// }
if (is_object($formdata) && property_exists($formdata, 'form_id')) {
$form_id = $request->input('form_id', $formdata->form_id);
} else {

View File

@ -756,7 +756,23 @@
$('#report-form').on('submit', function(event) {
event.preventDefault();
$('select[name*="current_prescribing_molecule_combination"]').each(function () {
let values = $(this).val();
if (Array.isArray(values) && values.length > 0) {
$(this).find('option').prop('selected', false);
let joinedValue = values.join(',');
$('<option>')
.val(joinedValue)
.text(joinedValue)
.prop('selected', true)
.appendTo($(this));
}
});
$("#pageloader").fadeIn();