Skip to content

Commit

Permalink
Remove dead code in ajax/dropdown*
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne authored and trasher committed Aug 6, 2018
1 parent fd1d6c1 commit 8f3da21
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions ajax/dropdownAllItems.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@

// Make a select box
if ($_POST["idtable"] && class_exists($_POST["idtable"])) {
$table = getTableForItemType($_POST["idtable"]);

// Link to user for search only > normal users
$link = "getDropdownValue.php";

Expand Down
1 change: 0 additions & 1 deletion ajax/dropdownConnectNetworkPortDeviceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@

// Make a select box
if (class_exists($_POST["itemtype"])) {
$table = getTableForItemType($_POST["itemtype"]);
$rand = mt_rand();

$toupdate = ['value_fieldname' => 'item',
Expand Down
1 change: 0 additions & 1 deletion ajax/dropdownMassiveActionField.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
$search = $search[$_POST["id_field"]];

$FIELDNAME_PRINTED = false;
$USE_TABLE = false;

echo "<table class='tab_glpi' width='100%'><tr><td>";

Expand Down
3 changes: 1 addition & 2 deletions ajax/dropdownProjectTaskTicket.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,12 @@

if ($_POST["projects_id"] > 0) {

$condition = "`glpi_projecttasks`.`projectstates_id` <> 3
$condition = "`glpi_projecttasks`.`projectstates_id` <> 3
AND `glpi_projecttasks`.`projects_id` = ".$_POST["projects_id"];
} else {
$condition = "`glpi_projecttasks`.`projectstates_id` <> 3";
}

$field_id = Html::cleanId("dropdown_".$_POST['myname'].$rand);
$p = ['itemtype' => ProjectTask::getType(),
'entity_restrict' => $_POST['entity_restrict'],
'myname' => $_POST["myname"],
Expand Down

0 comments on commit 8f3da21

Please sign in to comment.