static function showMassiveActionsSubForm(MassiveAction $ma)
{
$input = $ma->getInput();
switch ($ma->getAction()) {
case 'changegroup':
if (isset($input['is_tech']) && isset($input['check_items_id']) && isset($input['check_itemtype'])) {
if ($group = getItemForItemtype($input['check_itemtype'])) {
if ($group->getFromDB($input['check_items_id'])) {
self::dropdown(array('entity' => $group->fields["entities_id"], 'used' => array($group->fields["id"]), 'condition' => $input['is_tech'] ? '`is_assign`' : '`is_itemgroup`'));
echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Move') . "'>";
return true;
}
}
}
return true;
}
return parent::showMassiveActionsSubForm($ma);
}