} else {
         logAuditEvent(TLS("audit_testplan_created", $args->tproject_name, $args->testplan_name), "CREATED", $new_tplan_id, "testplans");
         $cf_map = $tplan_mgr->get_linked_cfields_at_design($new_tplan_id, $args->tproject_id);
         $tplan_mgr->cfield_mgr->design_values_to_db($_REQUEST, $new_tplan_id, $cf_map);
         $status_ok = true;
         $template = null;
         $gui->user_feedback = '';
         // Operations Order is CRITIC
         if ($args->copy) {
             $options = array('items2copy' => $args->copy_options, 'copy_assigned_to' => $args->copy_assigned_to, 'tcversion_type' => $args->tcversion_type);
             $tplan_mgr->copy_as($args->source_tplanid, $new_tplan_id, $args->testplan_name, $args->tproject_id, $args->user_id, $options);
         }
         if (!$args->is_public) {
             // does user have an SPECIFIC role on TestPlan ?
             // if answer is yes => do nothing
             if (!tlUser::hasRoleOnTestPlan($db, $args->user_id, $new_tplan_id)) {
                 $effectiveRole = $args->user->getEffectiveRole($db, $args->tproject_id, null);
                 $tplan_mgr->addUserRole($args->user_id, $new_tplan_id, $effectiveRole->dbID);
             }
         }
         // End critic block
     }
 } else {
     $gui->user_feedback = lang_get("warning_duplicate_tplan_name");
 }
 if (!$status_ok) {
     // $gui->tplan_id=$new_tplan_id;
     $gui->tproject_name = $args->tproject_name;
     $gui->notes = $of->CreateHTML();
 }
 break;