Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher authored Nov 10, 2023
1 parent 48b5bb1 commit ef7c4b9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions front/type.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,7 @@
$extraparams["selected"] = "checked";
}

//Change fields order
if (isset ($_GET["action"])) {
$type->getFromDB($_REQUEST["id"]);
PluginGenericobjectType::registerOneType($type);
PluginGenericobjectObject::changeFieldOrder($_GET["field"], $type->fields["itemtype"],
$_GET["action"]);
Html::back();

} else if (isset ($_POST["add"])) {
if (isset ($_POST["add"])) {
//Add a new itemtype
$new_id = $type->add($_POST);
Html::redirect(Toolbox::getItemTypeFormURL('PluginGenericobjectType')."?id=$new_id");
Expand Down

0 comments on commit ef7c4b9

Please sign in to comment.