Compare commits
3 Commits
f376096d1c
...
a435b3e8d0
| Author | SHA1 | Date |
|---|---|---|
|
|
a435b3e8d0 | |
|
|
4de0ddf283 | |
|
|
dac7f50e58 |
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue