Commit 9bea7909 authored by Johan Cwiklinski's avatar Johan Cwiklinski

Fix task creation from simplified interface; closes #2283

parent 22511195
......@@ -3653,7 +3653,8 @@ class Ticket extends CommonITILObject {
'', Ticket::INCIDENT_TYPE),
'_right' => "id",
'_filename' => [],
'_tag_filename' => []];
'_tag_filename' => [],
'_tasktemplates_id' => []];
// Get default values from posted values on reload form
if (!$ticket_template) {
......@@ -3828,6 +3829,12 @@ class Ticket extends CommonITILObject {
}
}
if (isset($options['_tasktemplates_id'])) {
foreach ($options['_tasktemplates_id'] as $tasktemplates_id) {
echo "<input type='hidden' name='_tasktemplates_id[]' value='$tasktemplates_id'>";
}
}
if (($CFG_GLPI['urgency_mask'] == (1<<3))
|| $tt->isHiddenField('urgency')) {
// Dont show dropdown if only 1 value enabled or field is hidden
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment