Navigation Menu

Skip to content

Commit

Permalink
Fix fields on workflow transition form
Browse files Browse the repository at this point in the history
Fix text area and text field display on the workflow transition form.
  • Loading branch information
hukoeth committed May 3, 2016
1 parent 3b469f7 commit 916d48b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions core/modules/main/templates/_updateissueproperties.inc.php
Expand Up @@ -189,6 +189,10 @@
});
});
</script>
<?php elseif ($info['type'] == \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_SMALL || $info['type'] == \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_MAIN):
include_component('main/textarea', array('area_name' => $field.'_id', 'target_type' => 'issue', 'target_id' => $issue->getID(), 'area_id' => $field.'_'.$transition->getID(), 'height' => '120px', 'width' => '790px', 'value' => ''));
elseif ($info['type'] == \thebuggenie\core\entities\CustomDatatype::INPUT_TEXT): ?>
<input type="text" name="<?php echo $field; ?>_id" placeholder="<?php echo $info['name'] ?>">
<?php else: ?>
<select name="<?php echo $field; ?>_id" id="transition_popup_set_<?php echo $field; ?>_<?php echo $transition->getID(); ?>">
<?php
Expand Down Expand Up @@ -220,14 +224,6 @@
<option value="<?php echo $choice->getID(); ?>"<?php if ($issue instanceof \thebuggenie\core\entities\Issue && $issue->getCustomField($field) instanceof \thebuggenie\core\entities\Edition && $issue->getCustomField($field)->getID() == $choice->getID()): ?> selected<?php endif; ?>><?php echo __($choice->getName()); ?></option>
<?php endforeach;
break;
case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXT:
?>
<input type="text" name="<?php echo $field; ?>_id" placeholder="<?php echo $info['name'] ?>">
<?php
break;
case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_SMALL:
include_component('main/textarea', array('area_name' => $field.'_id', 'target_type' => 'issue', 'target_id' => $issue->getID(), 'area_id' => $field.'_'.$transition->getID(), 'height' => '120px', 'width' => '790px', 'value' => ''));
break;
}
?>
</select>
Expand Down

0 comments on commit 916d48b

Please sign in to comment.