diff --git a/htdocs/comm/action/card.php b/htdocs/comm/action/card.php index 97ff00e0ebc..63f18d2c046 100644 --- a/htdocs/comm/action/card.php +++ b/htdocs/comm/action/card.php @@ -1355,6 +1355,8 @@ if ($action == 'create') { } $("#selectremindertype").select2("destroy"); $("#selectremindertype").select2(); + $("#select_offsetunittype_duration").select2("destroy"); + $("#select_offsetunittype_duration").select2(); }); $("#selectremindertype").change(function(){ diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index ef184548add..74dc0635292 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6544,7 +6544,7 @@ class Form unset($TDurationTypes[$value]); } - $retstring = ''; foreach ($TDurationTypes as $key => $typeduration) { $retstring .= '