<commit_before><div class="backdrop_box medium" id="viewissue_add_item_div">
	<div class="backdrop_detail_header"><?php echo __('Perform workflow step'); ?></div>
	<div id="backdrop_detail_content">
		<div class="header"><?php echo __('Selected issues'); ?></div>
		<div class="content">
			<ul>
				<?php foreach ($issues as $issue): ?>
				<li><?php echo $issue->getFormattedTitle(); ?></li>
				<?php endforeach; ?>
			</ul>
		</div>
		<?php if (!$project instanceof TBGProject): ?>
			<div class="content faded_out">
				<?php echo __('You can only apply workflow transitions on issues in the same project.'); ?>
			</div>
		<?php else: ?>
			<?php if (!count($available_transitions)): ?>
				<div class="content faded_out">
					<?php echo __('There is no workflow transition that can be applied to all these issues. Try selecting fewer issues, or issues that are currently at the same (or similar) workflow step(s).'); ?>
				</div>
			<?php else: ?>
				<div class="header"><?php echo __('Perform the following workflow transition on these issues'); ?></div>
				<div class="content">
					<?php foreach ($available_transitions as $transition): ?>
						<div><?php echo javascript_link_tag($transition->getName(), array('onclick' => "TBG.Main.Helpers.Backdrop.show('".make_url('get_partial_for_backdrop', array('key' => 'workflow_transition', 'transition_id' => $transition->getID()))."&project_key=".$project->getKey()."&issue_ids[]=".join('&issue_ids[]=', array_keys($issues))."');", 'class' => 'button button-silver')); ?></div>
					<?php endforeach; ?>
				</div>
			<?php endif; ?>
		<?php endif; ?>
	</div>
	<div class="backdrop_detail_footer">
		<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.reset();"><?php echo __('Cancel'); ?></a>
	</div>
</div><commit_msg>fix bulk workflow actions where no template is specified<commit_after><div class="backdrop_box medium" id="viewissue_add_item_div">
	<div class="backdrop_detail_header"><?php echo __('Perform workflow step'); ?></div>
	<div id="backdrop_detail_content">
		<div class="header"><?php echo __('%number_of% issues selected', array('%number_of%' => count($issues))); ?></div>
		<?php if (!$project instanceof TBGProject): ?>
			<div class="content faded_out">
				<?php echo __('You can only apply workflow transitions on issues in the same project.'); ?>
			</div>
		<?php else: ?>
			<?php if (!count($available_transitions)): ?>
				<div class="content faded_out">
					<?php echo __('There are no workflow transitions that can be applied to all these issues. Try selecting fewer issues, or issues that are currently at the same (or similar) workflow step(s).'); ?>
				</div>
			<?php else: ?>
				<div class="header"><?php echo __('Perform the following workflow transition on these issues'); ?></div>
				<div class="content">
					<?php foreach ($available_transitions as $transition): ?>
						<div>
							<?php if ($transition->hasTemplate()): ?>
								<?php echo javascript_link_tag($transition->getName(), array('onclick' => "TBG.Main.Helpers.Backdrop.show('".make_url('get_partial_for_backdrop', array('key' => 'workflow_transition', 'transition_id' => $transition->getID()))."&project_key=".$project->getKey()."&issue_ids[]=".join('&issue_ids[]=', array_keys($issues))."');", 'class' => 'button button-silver')); ?>
							<?php else: ?>
								<form action="<?php echo make_url('transition_issues', array('project_key' => $project->getKey(), 'transition_id' => $transition->getID())); ?>" method="post" onsubmit="TBG.Search.bulkWorkflowTransition('<?php echo make_url('transition_issues', array('project_key' => $project->getKey(), 'transition_id' => $transition->getID())); ?>', <?php echo $transition->getID(); ?>);return false;" accept-charset="<?php echo TBGContext::getI18n()->getCharset(); ?>" id="bulk_workflow_transition_form">
									<?php foreach ($issues as $issue_id => $i): ?>
										<input type="hidden" name="issue_ids[<?php echo $issue_id; ?>]" value="<?php echo $issue_id; ?>">
									<?php endforeach; ?>
									<input type="submit" value="<?php echo $transition->getName(); ?>">
								</form>
							<?php endif; ?>
						</div>
					<?php endforeach; ?>
				</div>
			<?php endif; ?>
		<?php endif; ?>
	</div>
	<div class="backdrop_detail_footer">
		<a href="javascript:void(0);" onclick="TBG.Main.Helpers.Backdrop.reset();"><?php echo __('Cancel'); ?></a>
	</div>
</div>
{'fraction_non_alphanumeric': 0.20117940576094354, 'fraction_numerical': 0.0009072352007257881, 'mean_word_length': 4.967523680649526, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6638358', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1353, 'n_words': 351}