function post_addItem() { //check whether orders have not already been created if (!isset($_SESSION['tmp_clone_package'])) { //Create installation & uninstallation order PluginFusioninventoryDeployOrder::createOrders($this->fields['id']); } }