├── LICENSE ├── README.md ├── ajax ├── index.php ├── loadscripts.php ├── ticket.php └── updatestatus.php ├── css ├── hide_task_duration.css └── moreticket.css ├── front ├── closeticket.form.php ├── config.form.php ├── index.php ├── waitingtype.form.php └── waitingtype.php ├── hook.php ├── inc ├── closeticket.class.php ├── config.class.php ├── crontask.class.php ├── index.php ├── notificationticket.class.php ├── profile.class.php ├── solution.class.php ├── ticket.class.php ├── ticketfollowup.class.php ├── tickettask.class.php ├── urgencyticket.class.php ├── waitingticket.class.php └── waitingtype.class.php ├── index.php ├── locales ├── cs_CZ.mo ├── cs_CZ.po ├── de_DE.mo ├── de_DE.po ├── en_GB.mo ├── en_GB.po ├── es_AR.mo ├── es_AR.po ├── es_EC.mo ├── es_EC.po ├── es_ES.mo ├── es_ES.po ├── fi_FI.mo ├── fi_FI.po ├── fr_CA.mo ├── fr_CA.po ├── fr_FR.mo ├── fr_FR.po ├── glpi.pot ├── it_IT.mo ├── it_IT.po ├── ja_JP.mo ├── ja_JP.po ├── pl_PL.mo ├── pl_PL.po ├── pt_BR.mo ├── pt_BR.po ├── pt_PT.mo ├── pt_PT.po ├── ru_RU.mo └── ru_RU.po ├── moreticket.png ├── scripts ├── moreticket.js ├── moreticket.js.php ├── moreticket_load_scripts.js.php ├── moreticket_urgency.js └── moreticket_urgency.js.php ├── setup.php └── sql ├── empty-1.0.0.sql ├── empty-1.1.0.sql ├── empty-1.1.1.sql ├── empty-1.1.2.sql ├── empty-1.1.3.sql ├── empty-1.2.0.sql ├── empty-1.2.2.sql ├── empty-1.2.3.sql ├── empty-1.2.4.sql ├── empty-1.2.5.sql ├── empty-1.3.2.sql ├── empty-1.3.4.sql ├── empty-1.4.0.sql ├── empty-1.5.1.sql ├── empty-1.6.2.sql ├── empty-1.6.3.sql ├── empty-1.7.0.sql ├── empty-1.7.5.sql ├── update-1.1.1.sql ├── update-1.1.2.sql ├── update-1.1.3.sql ├── update-1.2.0.sql ├── update-1.2.2.sql ├── update-1.2.3.sql ├── update-1.2.4.sql ├── update-1.2.5.sql ├── update-1.3.2.sql ├── update-1.3.4.sql ├── update-1.5.1.sql ├── update-1.6.2.sql ├── update-1.6.3.sql ├── update-1.7.0.sql └── update-1.7.5.sql /README.md: -------------------------------------------------------------------------------- 1 | # moreticket 2 | Plugin moreticket for GLPI 3 | 4 | Ce plugin est sur Transifex - Aidez-nous à le traduire : 5 | https://www.transifex.com/infotelGLPI/GLPI_moreticket/ 6 | 7 | This plugin is on Transifex - Help us to translate : 8 | https://www.transifex.com/infotelGLPI/GLPI_moreticket/ 9 | 10 | Ce plugin permet d'ajouter des nouvelles options sur un ticket GLPI : 11 | 12 | * A la création d'un ticket, lors de la sélection du statut "Résolu" ou "Clos", le ticket vous proposera de remplir la solution du ticket. 13 | 14 | * A la création et à la modification d'un ticket, lors de la sélection du statut "En attente", vous pourrez définir des types d'attente, la raison de la mise en attente ainsi qu'une date de report 15 | 16 | * Utiliser le champ 'Durée' dans l'interface d'ajout de solution. 17 | 18 | * Enfin une nouvelle zone sera disponible pour ajouter des informations suite à la clôture du ticket. 19 | -------------------------------------------------------------------------------- /ajax/index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /ajax/loadscripts.php: -------------------------------------------------------------------------------- 1 | . 28 | -------------------------------------------------------------------------- 29 | */ 30 | 31 | include ('../../../inc/includes.php'); 32 | 33 | Html::header_nocache(); 34 | Session::checkLoginUser(); 35 | header("Content-Type: text/html; charset=UTF-8"); 36 | 37 | if (isset($_POST['action'])) { 38 | 39 | switch ($_POST['action']) { 40 | case "load" : 41 | 42 | $config = new PluginMoreticketConfig(); 43 | $use_waiting = $config->useWaiting(); 44 | $use_solution = $config->useSolution(); 45 | $use_question = $config->useQuestion(); 46 | $use_urgency = $config->useUrgency(); 47 | $solution_status = $config->solutionStatus(); 48 | $urgency_ids = $config->getUrgency_ids(); 49 | $use_duration_solution = $config->useDurationSolution(); 50 | 51 | $params = ['root_doc' => $CFG_GLPI["root_doc"].PLUGIN_MORETICKET_DIR_NOFULL, 52 | 'waiting' => CommonITILObject::WAITING, 53 | 'closed' => CommonITILObject::CLOSED, 54 | 'use_waiting' => $use_waiting, 55 | 'use_solution' => $use_solution, 56 | 'use_question' => $use_question, 57 | 'solution_status' => $solution_status, 58 | // 'glpilayout' => $_SESSION['glpilayout'], 59 | 'use_urgency' => $use_urgency, 60 | 'urgency_ids' => $urgency_ids, 61 | 'div_kb' => Session::haveRight('knowbase', UPDATE)]; 62 | 63 | echo ""; 87 | 88 | break; 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /ajax/ticket.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | 32 | Html::header_nocache(); 33 | Session::checkLoginUser(); 34 | header("Content-Type: text/html; charset=UTF-8"); 35 | 36 | if (!isset($_POST['tickets_id']) || empty($_POST['tickets_id'])) { 37 | $_POST['tickets_id'] = 0; 38 | } 39 | 40 | if (isset($_POST['action'])) { 41 | switch ($_POST['action']) { 42 | case 'showForm': 43 | $config = new PluginMoreticketConfig(); 44 | 45 | // Ticket is waiting 46 | if ($config->useWaiting()) { 47 | $waiting_ticket = new PluginMoreticketWaitingTicket(); 48 | $waiting_ticket->showForm($_POST['tickets_id']); 49 | } 50 | 51 | // Ticket is closed 52 | if ($config->useSolution()) { 53 | if (isset($_POST['type']) && $_POST['type'] == 'add') { 54 | $close_ticket = new PluginMoreticketCloseTicket(); 55 | $close_ticket->showForm($_POST['tickets_id']); 56 | } 57 | } 58 | break; 59 | case 'showFormUrgency': 60 | $config = new PluginMoreticketConfig(); 61 | // Ticket is waiting 62 | if ($config->useUrgency()) { 63 | $urgency_ticket = new PluginMoreticketUrgencyTicket(); 64 | $urgency_ticket->showForm($_POST['tickets_id']); 65 | } 66 | break; 67 | 68 | // case 'showFormSolution': 69 | // $config = new PluginMoreticketConfig(); 70 | // 71 | // if ($config->useDurationSolution()) { 72 | // $solution = new PluginMoreticketSolution(); 73 | // $solution->showFormSolution($_POST['tickets_id']); 74 | // } 75 | // break; 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /ajax/updatestatus.php: -------------------------------------------------------------------------------- 1 | . 26 | -------------------------------------------------------------------------- 27 | */ 28 | 29 | .moreticket_close_ticket { 30 | -moz-border-radius: 3px; 31 | -webkit-border-radius: 3px; 32 | border-radius: 3px; 33 | border: solid 1px #CCCCCC; 34 | } 35 | 36 | .moreticket_waiting_ticket { 37 | -moz-border-radius: 3px; 38 | -webkit-border-radius: 3px; 39 | border-radius: 3px; 40 | border: solid 1px #CCCCCC; 41 | margin-left: auto; 42 | margin-right: auto; 43 | } 44 | -------------------------------------------------------------------------------- /front/closeticket.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | 32 | $closeTicket = new PluginMoreticketCloseTicket(); 33 | 34 | if (isset($_POST["add"])) { 35 | $closeTicket->check(-1, UPDATE, $_POST); 36 | 37 | $doc = new Document(); 38 | $doc->check(-1, CREATE, $_POST); 39 | $DocId = $doc->add($_POST); 40 | 41 | $test = $closeTicket->add(['requesters_id' => $_POST['requesters_id'], 42 | 'tickets_id' => $_POST['tickets_id'], 43 | 'date' => $_POST['date'], 44 | 'comment' => $_POST['comment'], 45 | 'documents_id' => $DocId]); 46 | Html::back(); 47 | } 48 | -------------------------------------------------------------------------------- /front/config.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | Session::checkLoginUser(); 32 | 33 | if (Plugin::isPluginActive("moreticket")) { 34 | 35 | $config = new PluginMoreticketConfig(); 36 | Session::checkRight('config', UPDATE); 37 | 38 | if (isset($_POST["update"])) { 39 | if (isset($_POST['solution_status'])) { 40 | $_POST['solution_status'] = json_encode($_POST['solution_status']); 41 | } else { 42 | $_POST['solution_status'] = ""; 43 | } 44 | 45 | $dbu = new DbUtils(); 46 | if (isset($_POST['urgency_ids'])) { 47 | $_POST['urgency_ids'] = $dbu->exportArrayToDB($_POST['urgency_ids']); 48 | } else { 49 | $_POST['urgency_ids'] = $dbu->exportArrayToDB([]); 50 | } 51 | 52 | $config->update($_POST); 53 | //Update singelton 54 | PluginMoreticketConfig::getConfig(true); 55 | Html::redirect($_SERVER['HTTP_REFERER']); 56 | } else { 57 | Html::header(PluginMoreticketConfig::getTypeName(), '', "plugins", "moreticket"); 58 | $config->showConfigForm(); 59 | Html::footer(); 60 | } 61 | 62 | } else { 63 | Html::header(__('Setup'), '', "config", "plugins"); 64 | echo "
"; 65 | echo "" . __('Please activate the plugin', 'moreticket') . "
"; 66 | Html::footer(); 67 | } 68 | -------------------------------------------------------------------------------- /front/index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /front/waitingtype.form.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | 32 | $dropdown = new PluginMoreticketWaitingType(); 33 | include(GLPI_ROOT . "/front/dropdown.common.form.php"); 34 | -------------------------------------------------------------------------------- /front/waitingtype.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | 32 | $dropdown = new PluginMoreticketWaitingType(); 33 | include(GLPI_ROOT . "/front/dropdown.common.php"); 34 | -------------------------------------------------------------------------------- /inc/crontask.class.php: -------------------------------------------------------------------------------- 1 | . 24 | -------------------------------------------------------------------------- 25 | */ 26 | 27 | class PluginMoreticketCrontask extends CommonDBTM 28 | { 29 | 30 | // public static function getTypeName($nb = 0) 31 | // { 32 | // return __('More ticket', 'moreticket'); 33 | // } 34 | // 35 | // public static function MoreticketFollowup() 36 | // { 37 | // $ticket = new Ticket(); 38 | // $tickets = $ticket->find(['status' => Ticket::WAITING , 'is_deleted' => "0"]); 39 | // $conf = new PluginMoreticketConfig(); 40 | // $day = $conf->getField("day_sending"); 41 | // $count = 0; 42 | // if (intval($day) > 0) { 43 | // foreach ($tickets as $t) { 44 | // $calendar = new Calendar(); 45 | // $calendars_id = Entity::getUsedConfig('calendars_strategy', $t['entities_id'], 'calendars_id', 0); 46 | // if ($calendars_id > 0 && $calendar->getFromDB($calendars_id)) { 47 | // $cache_duration = $calendar->getDurationsCache(); 48 | // $day_time = $cache_duration[1] * intval($day); 49 | // $enddate = $calendar->computeEndDate($t["begin_waiting_date"], $day_time); 50 | // $enddate = strtotime($enddate); 51 | // } else { 52 | // // cas 24/24 - 7/7 53 | // $day_time = DAY_TIMESTAMP * intval($day); 54 | // $begin_time = strtotime($t["begin_waiting_date"]); 55 | // $enddate = $begin_time + $day_time; 56 | // } 57 | // $today = strtotime(date('Y-m-d H:i:s')); 58 | // if ($enddate < $today && strtotime($t["date_mod"]) <= strtotime($t["begin_waiting_date"])) { 59 | // $followup = new TicketFollowup(); 60 | // $input = []; 61 | // $input['tickets_id'] = $t['id']; 62 | // $input['_status'] = Ticket::WAITING; 63 | // $input['content'] = $conf->getField("followup_text"); 64 | // 65 | // $followup->add($input); 66 | // $count++; 67 | // } 68 | // } 69 | // } 70 | // return $count; 71 | // } 72 | // 73 | // 74 | // public static function MoreticketClosing() 75 | // { 76 | // $ticket = new Ticket(); 77 | // $tickets = $ticket->find(['status' => Ticket::WAITING , 'is_deleted' => "0"]); 78 | // $conf = new PluginMoreticketConfig(); 79 | // $day = $conf->getField("day_sending"); 80 | // $dayClose = $conf->getField("day_closing"); 81 | // $count = 0; 82 | // if ($dayClose > 0) { 83 | // foreach ($tickets as $t) { 84 | // $calendar = new Calendar(); 85 | // $calendars_id = Entity::getUsedConfig('calendars_strategy', $t['entities_id'], 'calendars_id', 0); 86 | // 87 | // if ($calendars_id > 0 && $calendar->getFromDB($calendars_id)) { 88 | // $cache_duration = $calendar->getDurationsCache(); 89 | // $day_time = $cache_duration[1] * intval($day) + $cache_duration[1] * $dayClose; 90 | // $enddate = $calendar->computeEndDate($t["begin_waiting_date"], $day_time); 91 | // $enddate = strtotime($enddate); 92 | // } else { 93 | // // cas 24/24 - 7/7 94 | // $enddate = strtotime($t["begin_waiting_date"]) + (DAY_TIMESTAMP * $day) + (DAY_TIMESTAMP * $dayClose); 95 | // } 96 | // 97 | // $today = strtotime(date('Y-m-d H:i:s')); 98 | // $problemTicket = new Problem_Ticket(); 99 | // if ($enddate < $today && strtotime($t["date_mod"]) > strtotime($t["begin_waiting_date"]) 100 | // && (strtotime($t["date_mod"]) + (DAY_TIMESTAMP * $dayClose)) < $today 101 | // && ($conf->getField('closing_with_problem') == 1 102 | // || ($conf->getField('closing_with_problem') == 0 103 | // && count($problemTicket->find(['tickets_id' => $t['id']])) > 0))) { 104 | // $input = []; 105 | // $input['id'] = $t['id']; 106 | // $input['status'] = Ticket::CLOSED; 107 | // $input['notifSatisfaction'] = false; 108 | // 109 | // $ticket->update($input); 110 | // $count++; 111 | // } 112 | // } 113 | // } 114 | // return $count; 115 | // 116 | // } 117 | // 118 | // /** 119 | // * @param $name 120 | // * 121 | // * @return array 122 | // */ 123 | // static function cronInfo($name) 124 | // { 125 | // 126 | // switch ($name) { 127 | // case 'MoreticketFollowup': 128 | // return [ 129 | // 'description' => __('Moreticket - Send a followup to waiting ticket', 'moreticket')]; // Optional 130 | // break; 131 | // case 'MoreticketClosing': 132 | // return [ 133 | // 'description' => __('Moreticket - Closed the tickets that did not respond to the follow-up', 'moreticket')]; // Optional 134 | // break; 135 | // } 136 | // return []; 137 | // } 138 | // 139 | // /** 140 | // * 141 | // * @param $task for log, if NULL display 142 | // * 143 | // * 144 | // * @return int 145 | // */ 146 | // static function cronMoreticketClosing($task = null) 147 | // { 148 | // global $DB, $CFG_GLPI; 149 | // 150 | // $result = self::MoreticketClosing(); 151 | // $task->addVolume($result); 152 | // return $result; 153 | // } 154 | // 155 | // static function cronMoreticketFollowup($task = null) 156 | // { 157 | // global $DB, $CFG_GLPI; 158 | // 159 | // $result = self::MoreticketFollowup(); 160 | // $task->addVolume($result); 161 | // return $result; 162 | // } 163 | } 164 | -------------------------------------------------------------------------------- /inc/index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /inc/notificationticket.class.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | if (!defined('GLPI_ROOT')) { 31 | die("Sorry. You can't access directly to this file"); 32 | } 33 | 34 | /** 35 | * Class PluginMoreticketNotificationTicket 36 | */ 37 | class PluginMoreticketNotificationTicket extends CommonDBTM { 38 | 39 | static $types = ['Ticket']; 40 | var $dohistory = true; 41 | static $rightname = "plugin_moreticket"; 42 | 43 | /** 44 | * @param \Ticket $ticket 45 | */ 46 | static function afterAddTicket(Ticket $ticket) { 47 | $notification = new PluginMoreticketNotificationTicket(); 48 | if (!$notification->getFromDBByCrit(['tickets_id' => $ticket->getID()])) { 49 | $notification->add( 50 | [ 51 | 'tickets_id' => $ticket->getID(), 52 | 'users_id_lastupdater' => $ticket->getField('users_id_lastupdater') 53 | ]); 54 | } else { 55 | $notification->update( 56 | [ 57 | 'id' => $notification->getID(), 58 | 'tickets_id' => $ticket->getID(), 59 | 'users_id_lastupdater' => $ticket->getField('users_id_lastupdater') 60 | ]); 61 | } 62 | } 63 | 64 | /** 65 | * @param \Ticket $ticket 66 | */ 67 | static function afterUpdateTicket(Ticket $ticket) { 68 | $notification = new PluginMoreticketNotificationTicket(); 69 | if (!$notification->getFromDBByCrit(['tickets_id' => $ticket->getID()])) { 70 | $notification->add( 71 | [ 72 | 'tickets_id' => $ticket->getID(), 73 | 'users_id_lastupdater' => $ticket->getField('users_id_lastupdater') 74 | ]); 75 | } else { 76 | $notification->update( 77 | [ 78 | 'id' => $notification->getID(), 79 | 'tickets_id' => $ticket->getID(), 80 | 'users_id_lastupdater' => $ticket->getField('users_id_lastupdater') 81 | ]); 82 | } 83 | } 84 | 85 | /** 86 | * @param \ITILFollowup $followup 87 | * 88 | * @return bool 89 | */ 90 | static function afterAddFollowup(ITILFollowup $followup) { 91 | global $DB; 92 | if (!$followup->getField('itemtype') == 'Ticket') { 93 | return false; 94 | } 95 | 96 | $notification = new PluginMoreticketNotificationTicket(); 97 | $ticket = new Ticket(); 98 | $ticket->getFromDB($followup->getField('items_id')); 99 | if ($ticket->getID() > 0) { 100 | if (!$notification->getFromDBByCrit(['tickets_id' => $ticket->getID()])) { 101 | $notification->add( 102 | [ 103 | 'tickets_id' => $ticket->getID(), 104 | 'users_id_lastupdater' => $ticket->getField('users_id_lastupdater') 105 | ]); 106 | } else { 107 | $notification->update( 108 | [ 109 | 'id' => $notification->getID(), 110 | 'tickets_id' => $ticket->getID(), 111 | 'users_id_lastupdater' => $ticket->getField('users_id_lastupdater') 112 | ]); 113 | } 114 | } 115 | } 116 | 117 | static function getSpecificValueToDisplay($field, $values, array $options = []) { 118 | 119 | if (!is_array($values)) { 120 | $values = [$field => $values]; 121 | } 122 | switch ($field) { 123 | case 'users_id_lastupdater': 124 | $res = " "; 125 | $ticketUsers = new Ticket_User(); 126 | // if ($values['users_id_lastupdater'] != Session::getLoginUserID()) { 127 | // if ($ticketUsers->getFromDBByCrit(['tickets_id' => $values['tickets_id'], 128 | // 'users_id' => $values['users_id_lastupdater'], 129 | // 'type' => Ticket_User::REQUESTER])) { 130 | // if (!$ticketUsers->getFromDBByCrit(['tickets_id' => $values['tickets_id'], 131 | // 'users_id' => $values['users_id_lastupdater'], 132 | // 'type' => Ticket_User::ASSIGN])) { 133 | $res = ""; 134 | // } 135 | // } 136 | // } 137 | 138 | return $res; 139 | break; 140 | } 141 | return parent::getSpecificValueToDisplay($field, $values, $options); 142 | } 143 | } 144 | -------------------------------------------------------------------------------- /inc/solution.class.php: -------------------------------------------------------------------------------- 1 | . 26 | -------------------------------------------------------------------------- 27 | */ 28 | 29 | if (!defined('GLPI_ROOT')) { 30 | die("Sorry. You can't access directly to this file"); 31 | } 32 | 33 | 34 | /** 35 | * Class PluginMoreticketSolution 36 | */ 37 | class PluginMoreticketSolution extends CommonITILObject 38 | { 39 | 40 | static $rightname = "plugin_moreticket"; 41 | 42 | public static function getTaskClass() 43 | { 44 | // TODO: Implement getTaskClass() method. 45 | } 46 | 47 | public static function getDefaultValues($entity = 0) 48 | { 49 | // TODO: Implement getDefaultValues() method. 50 | } 51 | 52 | public static function getItemLinkClass(): string 53 | { 54 | // TODO: Implement getItemLinkClass() method. 55 | } 56 | 57 | public static function getContentTemplatesParametersClass(): string 58 | { 59 | // TODO: Implement getContentTemplatesParametersClass() method. 60 | } 61 | 62 | static function showFormSolution($params) 63 | { 64 | 65 | if (isset($params['item'])) { 66 | $item = $params['item']; 67 | $options = $params['options']; 68 | 69 | if ($item->getType() == 'ITILSolution') { 70 | 71 | $ticket = $options['item']; 72 | $config = new PluginMoreticketConfig(); 73 | $use_duration_solution = $config->useDurationSolution(); 74 | if ($use_duration_solution == 1) { 75 | echo "
"; 76 | echo __('Duration'); 77 | if ($config->isMandatorysolution()) { 78 | echo " * "; 79 | } 80 | $rand = mt_rand(); 81 | echo ""; 82 | $toadd = []; 83 | for ($i = 9; $i <= 100; $i++) { 84 | $toadd[] = $i * HOUR_TIMESTAMP; 85 | } 86 | Dropdown::showTimeStamp("duration_solution", ['min' => 0, 87 | 'max' => 8 * HOUR_TIMESTAMP, 88 | // 'addfirstminutes' => true, 89 | 'inhours' => true, 90 | 'toadd' => $toadd]); 91 | echo ""; 92 | echo "
"; 93 | } 94 | } 95 | } 96 | } 97 | 98 | /** 99 | * @param \Ticket $item 100 | * 101 | * @return bool 102 | */ 103 | static function beforeAdd(ITILSolution $solution) 104 | { 105 | global $CFG_GLPI; 106 | 107 | if (!is_array($solution->input) || !count($solution->input)) { 108 | // Already cancel by another plugin 109 | return false; 110 | } 111 | $config = new PluginMoreticketConfig(); 112 | 113 | $configglpi = Config::getConfigurationValues('core', ['system_user']); 114 | 115 | if ($config->useDurationSolution()) { 116 | if ($solution->input['itemtype'] == 'Ticket') { 117 | if (isset($solution->input['duration_solution']) && $solution->input['duration_solution'] > 0) { 118 | 119 | // $solution->input['content'] = html_entity_decode($solution->input['content']); 120 | // $solution->input['content'] = strip_tags($solution->input['content']); 121 | $ticket = new Ticket(); 122 | $tickets_id = $solution->input['items_id']; 123 | if ($ticket->getFromDB($tickets_id)) { 124 | if ($ticket->getField('actiontime') == 0) { 125 | $ticket->update(['id' => $tickets_id, 126 | 'actiontime' => $solution->input['duration_solution']]); 127 | } 128 | } 129 | 130 | $user = new User(); 131 | $user->getFromDB(Session::getLoginUserID()); 132 | 133 | $tickettask = new TicketTask(); 134 | $tickettask->add(['tickets_id' => $tickets_id, 135 | 'date_creation' => date('Y-m-d H:i:s'), 136 | 'date' => date('Y-m-d H:i:s', 137 | strtotime('- 10 seconds', strtotime(date('Y-m-d H:i:s')))), 138 | 'users_id' => Session::getLoginUserID(), 139 | 'users_id_tech' => Session::getLoginUserID(), 140 | 'content' => $solution->input['content'], 141 | 'state' => Planning::DONE, 142 | 'is_private' => $user->getField('task_private'), 143 | 'actiontime' => $solution->input['duration_solution']]); 144 | } else if ($config->isMandatorysolution()) { 145 | if (Plugin::isPluginActive('servicecatalog') 146 | && Session::getCurrentInterface() != "central") { 147 | return true; 148 | } 149 | if ($configglpi['system_user'] == $solution->input['users_id']) { 150 | return true; 151 | } 152 | $ticket = new Ticket(); 153 | $tickets_id = $solution->input['items_id']; 154 | $ticket->getFromDB($tickets_id); 155 | $dur = (isset($ticket->fields['actiontime']) ? $ticket->fields['actiontime'] : 0); 156 | if ($dur == 0) { 157 | Session::addMessageAfterRedirect(_n('Mandatory field', 'Mandatory fields', 2) . " : " . __('Duration'), false, ERROR); 158 | $solution->input = []; 159 | } 160 | return false; 161 | } 162 | } 163 | } 164 | return true; 165 | } 166 | } 167 | -------------------------------------------------------------------------------- /inc/ticketfollowup.class.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | if (!defined('GLPI_ROOT')) { 31 | die("Sorry. You can't access directly to this file"); 32 | } 33 | 34 | 35 | /** 36 | * Class PluginMoreticketTicketFollowup 37 | */ 38 | class PluginMoreticketTicketFollowup extends CommonDBTM 39 | { 40 | 41 | static $rightname = "plugin_moreticket"; 42 | 43 | /** 44 | * functions mandatory 45 | * getTypeName(), canCreate(), canView() 46 | * 47 | * @param int $nb 48 | * 49 | * @return string|translated 50 | */ 51 | public static function getTypeName($nb = 0) 52 | { 53 | 54 | return _n('Ticket', 'Tickets', $nb); 55 | } 56 | 57 | /** 58 | * @param $ticketfollowup 59 | * 60 | * @return bool 61 | */ 62 | static function beforeAdd($ticketfollowup) 63 | { 64 | 65 | if (!is_array($ticketfollowup->input) || !count($ticketfollowup->input)) { 66 | // Already cancel by another plugin 67 | return false; 68 | } 69 | 70 | $config = new PluginMoreticketConfig(); 71 | 72 | if (isset($ticketfollowup->input['pending']) 73 | && $ticketfollowup->input['pending'] 74 | && $config->useWaiting() == true) { 75 | PluginMoreticketWaitingTicket::addWaitingTicket($ticketfollowup); 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /inc/tickettask.class.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | if (!defined('GLPI_ROOT')) { 31 | die("Sorry. You can't access directly to this file"); 32 | } 33 | 34 | 35 | /** 36 | * Class PluginMoreticketTicketTask 37 | */ 38 | class PluginMoreticketTicketTask extends CommonITILTask { 39 | 40 | static $rightname = "plugin_moreticket"; 41 | 42 | /** 43 | * functions mandatory 44 | * getTypeName(), canCreate(), canView() 45 | * 46 | * @param int $nb 47 | * 48 | * @return string|translated 49 | */ 50 | public static function getTypeName($nb = 0) { 51 | 52 | return _n('Ticket', 'Tickets', $nb); 53 | } 54 | 55 | /** 56 | * @param TicketTask $tickettask 57 | * 58 | * @return bool 59 | */ 60 | static function beforeAdd(TicketTask $tickettask) { 61 | 62 | if (!is_array($tickettask->input) || !count($tickettask->input)) { 63 | // Already cancel by another plugin 64 | return false; 65 | } 66 | 67 | $config = new PluginMoreticketConfig(); 68 | 69 | if (isset($tickettask->input['pending']) 70 | && $tickettask->input['pending'] 71 | && $config->useWaiting() == true) { 72 | PluginMoreticketWaitingTicket::addWaitingTicket($tickettask); 73 | } 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /inc/waitingtype.class.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | if (!defined('GLPI_ROOT')) { 31 | die("Sorry. You can't access directly to this file"); 32 | } 33 | 34 | /** 35 | * Class PluginMoreticketWaitingType 36 | */ 37 | class PluginMoreticketWaitingType extends CommonTreeDropdown { 38 | var $can_be_translated = true; 39 | static $rightname = "dropdown"; 40 | 41 | /** 42 | * @param int $nb 43 | * 44 | * @return \translated 45 | */ 46 | public static function getTypeName($nb = 0) { 47 | 48 | return _n('Waiting type', 'Waiting types', $nb, 'moreticket'); 49 | } 50 | 51 | /** 52 | * @return array 53 | */ 54 | function getAdditionalFields() { 55 | 56 | $tab = [['name' => $this->getForeignKeyField(), 57 | 'label' => __('As child of'), 58 | 'type' => 'parent', 59 | 'list' => false] 60 | ]; 61 | 62 | return $tab; 63 | 64 | } 65 | 66 | /** 67 | * Provides search options configuration. Do not rely directly 68 | * on this, @see CommonDBTM::searchOptions instead. 69 | * 70 | * @since 9.3 71 | * 72 | * This should be overloaded in Class 73 | * 74 | * @return array a *not indexed* array of search options 75 | * 76 | * @see https://glpi-developer-documentation.rtfd.io/en/master/devapi/search.html 77 | **/ 78 | public function rawSearchOptions() { 79 | 80 | $tab = parent::rawSearchOptions(); 81 | 82 | return $tab; 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | -------------------------------------------------------------------------------- /locales/cs_CZ.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/cs_CZ.mo -------------------------------------------------------------------------------- /locales/cs_CZ.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # 5 | # Translators: 6 | # Pavel Borecki , 2018 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: GLPI Project - moreticket plugin\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2019-02-26 15:54+0100\n" 12 | "PO-Revision-Date: 2019-02-26 15:09+0000\n" 13 | "Last-Translator: Mathieu Templier \n" 14 | "Language-Team: Czech (Czech Republic) (http://www.transifex.com/tsmr/GLPI_moreticket/language/cs_CZ/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: cs_CZ\n" 19 | "Plural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n" 20 | 21 | #: hook.php:200 inc/waitingticket.class.php:139 22 | #: inc/waitingticket.class.php:238 inc/waitingticket.class.php:317 23 | #: inc/waitingticket.class.php:390 24 | msgid "Reason" 25 | msgstr "Důvod" 26 | 27 | #: hook.php:208 inc/waitingticket.class.php:131 28 | #: inc/waitingticket.class.php:253 inc/waitingticket.class.php:332 29 | #: inc/waitingticket.class.php:392 30 | msgid "Postponement date" 31 | msgstr "Datum na které odložit" 32 | 33 | #: hook.php:228 hook.php:235 hook.php:242 hook.php:249 34 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 35 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:178 36 | #: inc/closeticket.class.php:326 inc/closeticket.class.php:380 37 | #: inc/config.class.php:167 38 | msgid "Close ticket informations" 39 | msgstr "Informace o uzavření požadavku" 40 | 41 | #: setup.php:94 inc/profile.class.php:49 inc/profile.class.php:194 42 | msgid "More ticket" 43 | msgstr "Více k požadavku" 44 | 45 | #: front/config.form.php:66 46 | msgid "Please activate the plugin" 47 | msgstr "Zapněte zásuvný modul" 48 | 49 | #: inc/closeticket.class.php:135 inc/closeticket.class.php:479 50 | msgid "Solution description" 51 | msgstr "Popis řešení" 52 | 53 | #: inc/closeticket.class.php:154 54 | msgid "Ticket cannot be closed" 55 | msgstr "Požadavek není možné uzavřít" 56 | 57 | #: inc/closeticket.class.php:576 58 | #, php-format 59 | msgid "%1$s added closing informations" 60 | msgstr "%1$s přidal informace o uzavření" 61 | 62 | #: inc/closeticket.class.php:595 63 | #, php-format 64 | msgid "%1$s updated closing informations" 65 | msgstr "%1$s aktualizoval informace o uzavření" 66 | 67 | #: inc/closeticket.class.php:614 68 | #, php-format 69 | msgid "%1$s deleted closing informations" 70 | msgstr "%1$s smazal informace o uzavření" 71 | 72 | #: inc/config.class.php:98 73 | msgid "Ticket waiting" 74 | msgstr "Čekající požadavek" 75 | 76 | #: inc/config.class.php:102 77 | msgid "Use waiting process" 78 | msgstr "Použít čekající proces" 79 | 80 | #: inc/config.class.php:120 81 | msgid "Report date is mandatory" 82 | msgstr "Je třeba vyplnit datum odkladu" 83 | 84 | #: inc/config.class.php:127 85 | msgid "Waiting type is mandatory" 86 | msgstr "Typ čekání je třeba vyplnit" 87 | 88 | #: inc/config.class.php:134 89 | msgid "Waiting reason is mandatory" 90 | msgstr "Důvod čekání je třeba vyplnit" 91 | 92 | #: inc/config.class.php:140 93 | msgid "Ticket resolution and close" 94 | msgstr "Vyřešení a uzavření požadavku" 95 | 96 | #: inc/config.class.php:142 97 | msgid "Use solution process" 98 | msgstr "Použít proces řešení" 99 | 100 | #: inc/config.class.php:160 101 | msgid "Solution type is mandatory" 102 | msgstr "Je třeba vyplnit typ řešení" 103 | 104 | #: inc/config.class.php:173 105 | msgid "Status used to display solution bloc" 106 | msgstr "Stav použitý pro zobrazení bloku řešení" 107 | 108 | #: inc/config.class.php:186 109 | msgid "Add a followup on immediate ticket closing" 110 | msgstr "Při uzavírání požadavku přidejte následnou komunikaci" 111 | 112 | #: inc/config.class.php:192 113 | msgid "Use the 'Duration' field in the add solution interface" 114 | msgstr "V rozhraní pro přidání řešení použijte kolonku „Doba trvání“" 115 | 116 | #: inc/config.class.php:206 117 | msgid "Mandatory 'Duration' field" 118 | msgstr "Povinná kolonka „Doba trvání“" 119 | 120 | #: inc/config.class.php:211 121 | msgid "Ticket urgency" 122 | msgstr "Naléhavost požadavku" 123 | 124 | #: inc/config.class.php:213 125 | msgid "Use a justification of the urgency field" 126 | msgstr "Použít zdůvodnění kolonky naléhavost" 127 | 128 | #: inc/config.class.php:229 129 | msgid "Urgency impacted justification for the field" 130 | msgstr "Naléhavostí ovlivněné zdůvodnění pro tuto kolonku" 131 | 132 | #: inc/profile.class.php:158 133 | msgid "Adding a justification of urgency" 134 | msgstr "Přidává se odůvodnění naléhavosti" 135 | 136 | #: inc/profile.class.php:166 137 | msgid "Hide task duration in tickets" 138 | msgstr "" 139 | 140 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:155 141 | msgid "Justification" 142 | msgstr "Odůvodnění" 143 | 144 | #: inc/urgencyticket.class.php:92 145 | msgid "Urgency ticket cannot be saved" 146 | msgstr "Naléhavost požadavku se nedaří uložit" 147 | 148 | #: inc/urgencyticket.class.php:94 inc/waitingticket.class.php:171 149 | msgid "Ticket cannot be saved" 150 | msgstr "Požadavek není možné uložit" 151 | 152 | #: inc/waitingticket.class.php:65 153 | msgid "Waiting ticket" 154 | msgid_plural "Waiting tickets" 155 | msgstr[0] "Čekající požadavek" 156 | msgstr[1] "Čekající požadavky" 157 | msgstr[2] "Čekajících požadavků" 158 | msgstr[3] "Čekající požadavky" 159 | 160 | #: inc/waitingticket.class.php:169 161 | msgid "Waiting ticket cannot be saved" 162 | msgstr "Čekající požadavek není možné uložit" 163 | 164 | #: inc/waitingticket.class.php:175 165 | msgid "Report date is inferior of today's date" 166 | msgstr "Datum odkladu je dřívější než to dnešní" 167 | 168 | #: inc/waitingticket.class.php:386 inc/waitingticket.class.php:426 169 | msgid "Ticket suspension history" 170 | msgstr "Historie suspendování požadavku" 171 | 172 | #: inc/waitingticket.class.php:389 173 | msgid "Suspension date" 174 | msgstr "Datum suspendování" 175 | 176 | #: inc/waitingticket.class.php:393 177 | msgid "Suspension end date" 178 | msgstr "Datum konce suspendování" 179 | 180 | #: inc/waitingticket.class.php:751 181 | msgid "End of standby ticket" 182 | msgstr "Konec pohotovosti požadavku" 183 | 184 | #: inc/waitingtype.class.php:48 185 | msgid "Waiting type" 186 | msgid_plural "Waiting types" 187 | msgstr[0] "Typ čekání" 188 | msgstr[1] "Typy čekání" 189 | msgstr[2] "Typů čekání" 190 | msgstr[3] "Typy čekání" 191 | -------------------------------------------------------------------------------- /locales/de_DE.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/de_DE.mo -------------------------------------------------------------------------------- /locales/en_GB.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/en_GB.mo -------------------------------------------------------------------------------- /locales/en_GB.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # 5 | # Translators: 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: GLPI Project - moreticket plugin\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2019-02-26 15:54+0100\n" 11 | "PO-Revision-Date: 2019-02-26 15:09+0000\n" 12 | "Last-Translator: Mathieu Templier \n" 13 | "Language-Team: English (United Kingdom) (http://www.transifex.com/tsmr/GLPI_moreticket/language/en_GB/)\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Language: en_GB\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | 20 | #: hook.php:200 inc/waitingticket.class.php:139 21 | #: inc/waitingticket.class.php:238 inc/waitingticket.class.php:317 22 | #: inc/waitingticket.class.php:390 23 | msgid "Reason" 24 | msgstr "Reason" 25 | 26 | #: hook.php:208 inc/waitingticket.class.php:131 27 | #: inc/waitingticket.class.php:253 inc/waitingticket.class.php:332 28 | #: inc/waitingticket.class.php:392 29 | msgid "Postponement date" 30 | msgstr "Postponement date" 31 | 32 | #: hook.php:228 hook.php:235 hook.php:242 hook.php:249 33 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 34 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:178 35 | #: inc/closeticket.class.php:326 inc/closeticket.class.php:380 36 | #: inc/config.class.php:167 37 | msgid "Close ticket informations" 38 | msgstr "Close ticket informations" 39 | 40 | #: setup.php:94 inc/profile.class.php:49 inc/profile.class.php:194 41 | msgid "More ticket" 42 | msgstr "More ticket" 43 | 44 | #: front/config.form.php:66 45 | msgid "Please activate the plugin" 46 | msgstr "Please activate the plugin" 47 | 48 | #: inc/closeticket.class.php:135 inc/closeticket.class.php:479 49 | msgid "Solution description" 50 | msgstr "Solution description" 51 | 52 | #: inc/closeticket.class.php:154 53 | msgid "Ticket cannot be closed" 54 | msgstr "Ticket cannot be closed" 55 | 56 | #: inc/closeticket.class.php:576 57 | #, php-format 58 | msgid "%1$s added closing informations" 59 | msgstr "%1$s added closing informations" 60 | 61 | #: inc/closeticket.class.php:595 62 | #, php-format 63 | msgid "%1$s updated closing informations" 64 | msgstr "%1$s updated closing informations" 65 | 66 | #: inc/closeticket.class.php:614 67 | #, php-format 68 | msgid "%1$s deleted closing informations" 69 | msgstr "%1$s deleted closing informations" 70 | 71 | #: inc/config.class.php:98 72 | msgid "Ticket waiting" 73 | msgstr "Ticket waiting" 74 | 75 | #: inc/config.class.php:102 76 | msgid "Use waiting process" 77 | msgstr "Use waiting process" 78 | 79 | #: inc/config.class.php:120 80 | msgid "Report date is mandatory" 81 | msgstr "Report date is mandatory" 82 | 83 | #: inc/config.class.php:127 84 | msgid "Waiting type is mandatory" 85 | msgstr "Waiting type is mandatory" 86 | 87 | #: inc/config.class.php:134 88 | msgid "Waiting reason is mandatory" 89 | msgstr "Waiting reason is mandatory" 90 | 91 | #: inc/config.class.php:140 92 | msgid "Ticket resolution and close" 93 | msgstr "Ticket resolution and close" 94 | 95 | #: inc/config.class.php:142 96 | msgid "Use solution process" 97 | msgstr "Use solution process" 98 | 99 | #: inc/config.class.php:160 100 | msgid "Solution type is mandatory" 101 | msgstr "Solution type is mandatory" 102 | 103 | #: inc/config.class.php:173 104 | msgid "Status used to display solution bloc" 105 | msgstr "Status used to display solution bloc" 106 | 107 | #: inc/config.class.php:186 108 | msgid "Add a followup on immediate ticket closing" 109 | msgstr "Add a followup on immediate ticket closing" 110 | 111 | #: inc/config.class.php:192 112 | msgid "Use the 'Duration' field in the add solution interface" 113 | msgstr "Use the 'Duration' field in the add solution interface" 114 | 115 | #: inc/config.class.php:206 116 | msgid "Mandatory 'Duration' field" 117 | msgstr "Mandatory 'Duration' field" 118 | 119 | #: inc/config.class.php:211 120 | msgid "Ticket urgency" 121 | msgstr "Ticket urgency" 122 | 123 | #: inc/config.class.php:213 124 | msgid "Use a justification of the urgency field" 125 | msgstr "Use a justification of the urgency field" 126 | 127 | #: inc/config.class.php:229 128 | msgid "Urgency impacted justification for the field" 129 | msgstr "Urgency impacted justification for the field" 130 | 131 | #: inc/profile.class.php:158 132 | msgid "Adding a justification of urgency" 133 | msgstr "Adding a justification of urgency" 134 | 135 | #: inc/profile.class.php:166 136 | msgid "Hide task duration in tickets" 137 | msgstr "Hide task duration in tickets" 138 | 139 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:155 140 | msgid "Justification" 141 | msgstr "Justification" 142 | 143 | #: inc/urgencyticket.class.php:92 144 | msgid "Urgency ticket cannot be saved" 145 | msgstr "Urgency ticket cannot be saved" 146 | 147 | #: inc/urgencyticket.class.php:94 inc/waitingticket.class.php:171 148 | msgid "Ticket cannot be saved" 149 | msgstr "Ticket cannot be saved" 150 | 151 | #: inc/waitingticket.class.php:65 152 | msgid "Waiting ticket" 153 | msgid_plural "Waiting tickets" 154 | msgstr[0] "Waiting ticket" 155 | msgstr[1] "Waiting tickets" 156 | 157 | #: inc/waitingticket.class.php:169 158 | msgid "Waiting ticket cannot be saved" 159 | msgstr "Waiting ticket cannot be saved" 160 | 161 | #: inc/waitingticket.class.php:175 162 | msgid "Report date is inferior of today's date" 163 | msgstr "Report date is inferior of today's date" 164 | 165 | #: inc/waitingticket.class.php:386 inc/waitingticket.class.php:426 166 | msgid "Ticket suspension history" 167 | msgstr "Ticket suspension history" 168 | 169 | #: inc/waitingticket.class.php:389 170 | msgid "Suspension date" 171 | msgstr "Suspension date" 172 | 173 | #: inc/waitingticket.class.php:393 174 | msgid "Suspension end date" 175 | msgstr "Suspension end date" 176 | 177 | #: inc/waitingticket.class.php:751 178 | msgid "End of standby ticket" 179 | msgstr "End of standby ticket" 180 | 181 | #: inc/waitingtype.class.php:48 182 | msgid "Waiting type" 183 | msgid_plural "Waiting types" 184 | msgstr[0] "Waiting type" 185 | msgstr[1] "Waiting types" 186 | -------------------------------------------------------------------------------- /locales/es_AR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/es_AR.mo -------------------------------------------------------------------------------- /locales/es_AR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Xavier CAILLAUD , 2020 8 | # Luis Angel Uriarte , 2020 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: GLPI - MoreTicket plugin\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2020-11-03 13:16+0000\n" 16 | "PO-Revision-Date: 2020-11-02 16:11+0000\n" 17 | "Last-Translator: Luis Angel Uriarte , 2020\n" 18 | "Language-Team: Spanish (Argentina) (https://www.transifex.com/infotelGLPI/teams/50826/es_AR/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: es_AR\n" 23 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 24 | 25 | #: hook.php:204 inc/waitingticket.class.php:139 26 | #: inc/waitingticket.class.php:238 inc/waitingticket.class.php:317 27 | #: inc/waitingticket.class.php:390 28 | msgid "Reason" 29 | msgstr "Motivo" 30 | 31 | #: hook.php:212 inc/waitingticket.class.php:131 32 | #: inc/waitingticket.class.php:253 inc/waitingticket.class.php:332 33 | #: inc/waitingticket.class.php:392 34 | msgid "Postponement date" 35 | msgstr "Posponer hasta" 36 | 37 | #: hook.php:232 hook.php:239 hook.php:246 hook.php:253 38 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 39 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:178 40 | #: inc/closeticket.class.php:326 inc/closeticket.class.php:380 41 | #: inc/config.class.php:167 42 | msgid "Close ticket informations" 43 | msgstr "Informaciones del Req. Cerrado" 44 | 45 | #: setup.php:100 inc/profile.class.php:49 inc/profile.class.php:194 46 | msgid "More ticket" 47 | msgstr "Más requerimientos" 48 | 49 | #: front/config.form.php:66 50 | msgid "Please activate the plugin" 51 | msgstr "Por favor activar el complemento" 52 | 53 | #: inc/closeticket.class.php:135 inc/closeticket.class.php:479 54 | msgid "Solution description" 55 | msgstr "Descripción" 56 | 57 | #: inc/closeticket.class.php:154 58 | msgid "Ticket cannot be closed" 59 | msgstr "Requerimiento no se puede cerrar" 60 | 61 | #: inc/closeticket.class.php:580 62 | #, php-format 63 | msgid "%1$s added closing informations" 64 | msgstr "%1$s informaciones de cierres agregada" 65 | 66 | #: inc/closeticket.class.php:599 67 | #, php-format 68 | msgid "%1$s updated closing informations" 69 | msgstr "%1$s informaciones de cierres actualizadas" 70 | 71 | #: inc/closeticket.class.php:618 72 | #, php-format 73 | msgid "%1$s deleted closing informations" 74 | msgstr "%1$s informaciones de cierres borradas" 75 | 76 | #: inc/config.class.php:98 inc/config.class.php:243 77 | #: inc/waitingticket.class.php:807 78 | msgid "Ticket waiting" 79 | msgstr "Solicitación en espera" 80 | 81 | #: inc/config.class.php:102 82 | msgid "Use waiting process" 83 | msgstr "Usar procesos de espera" 84 | 85 | #: inc/config.class.php:120 86 | msgid "Report date is mandatory" 87 | msgstr "Fecha de informe es obligatoria" 88 | 89 | #: inc/config.class.php:127 90 | msgid "Waiting type is mandatory" 91 | msgstr "Tipo de espera es obligatorio" 92 | 93 | #: inc/config.class.php:134 94 | msgid "Waiting reason is mandatory" 95 | msgstr "Motivo de la espera es obligatorio " 96 | 97 | #: inc/config.class.php:140 98 | msgid "Ticket resolution and close" 99 | msgstr "Resolución de solicitación y cierre" 100 | 101 | #: inc/config.class.php:142 102 | msgid "Use solution process" 103 | msgstr "Usar procesos en soución" 104 | 105 | #: inc/config.class.php:160 106 | msgid "Solution type is mandatory" 107 | msgstr "Tipo de solución es obligatorio" 108 | 109 | #: inc/config.class.php:173 110 | msgid "Status used to display solution bloc" 111 | msgstr "Estado usado para mostrar solución en" 112 | 113 | #: inc/config.class.php:186 114 | msgid "Add a followup on immediate ticket closing" 115 | msgstr "Agregar un seguimiento en el cierre inmediato del servicio" 116 | 117 | #: inc/config.class.php:192 118 | msgid "Use the 'Duration' field in the add solution interface" 119 | msgstr "Use el campo \"Duración\" en la interfaz de la solución" 120 | 121 | #: inc/config.class.php:206 122 | msgid "Mandatory 'Duration' field" 123 | msgstr "Campo \"Duración\" obligatorio " 124 | 125 | #: inc/config.class.php:211 126 | msgid "Ticket urgency" 127 | msgstr "Urgencia de la llamada" 128 | 129 | #: inc/config.class.php:213 130 | msgid "Use a justification of the urgency field" 131 | msgstr "Justifique la urgencia de la llamada" 132 | 133 | #: inc/config.class.php:229 134 | msgid "Urgency impacted justification for the field" 135 | msgstr "Impacto de la justificación de la llamada" 136 | 137 | #: inc/config.class.php:245 138 | msgid "Use the option ticket waiting in ticket followup" 139 | msgstr "Utilice la opción ticket esperando en el seguimiento del ticket" 140 | 141 | #: inc/profile.class.php:158 142 | msgid "Adding a justification of urgency" 143 | msgstr "Agregar la justificación de urgencia " 144 | 145 | #: inc/profile.class.php:166 146 | msgid "Hide task duration in tickets" 147 | msgstr "Ocultar la duración de la tarea en los tickets" 148 | 149 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:155 150 | msgid "Justification" 151 | msgstr "Justificación" 152 | 153 | #: inc/urgencyticket.class.php:92 154 | msgid "Urgency ticket cannot be saved" 155 | msgstr "Urgencia de la llamada no se puede grabar " 156 | 157 | #: inc/urgencyticket.class.php:94 inc/waitingticket.class.php:171 158 | msgid "Ticket cannot be saved" 159 | msgstr "Requerimiento no se puede guardar" 160 | 161 | #: inc/waitingticket.class.php:65 162 | msgid "Waiting ticket" 163 | msgid_plural "Waiting tickets" 164 | msgstr[0] "Esperando servicio" 165 | msgstr[1] "Esperando servicios" 166 | 167 | #: inc/waitingticket.class.php:169 168 | msgid "Waiting ticket cannot be saved" 169 | msgstr "En espera no se puede guardar" 170 | 171 | #: inc/waitingticket.class.php:175 172 | msgid "Report date is inferior of today's date" 173 | msgstr "Fecha de informe es inferior a fecha de hoy" 174 | 175 | #: inc/waitingticket.class.php:386 inc/waitingticket.class.php:426 176 | msgid "Ticket suspension history" 177 | msgstr "Historial de espera" 178 | 179 | #: inc/waitingticket.class.php:389 180 | msgid "Suspension date" 181 | msgstr "Fecha de suspención" 182 | 183 | #: inc/waitingticket.class.php:393 184 | msgid "Suspension end date" 185 | msgstr "Fecha fin de suspención" 186 | 187 | #: inc/waitingticket.class.php:754 188 | msgid "End of standby ticket" 189 | msgstr "Fin de servicio en espera" 190 | 191 | #: inc/waitingtype.class.php:48 192 | msgid "Waiting type" 193 | msgid_plural "Waiting types" 194 | msgstr[0] "Waiting type" 195 | msgstr[1] "Tipo de espera" 196 | -------------------------------------------------------------------------------- /locales/es_EC.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/es_EC.mo -------------------------------------------------------------------------------- /locales/es_ES.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/es_ES.mo -------------------------------------------------------------------------------- /locales/es_ES.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Xavier CAILLAUD , 2022 8 | # FranciscoFJ , 2022 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: GLPI - MoreTicket plugin\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2022-06-02 06:39+0000\n" 16 | "PO-Revision-Date: 2020-11-02 16:11+0000\n" 17 | "Last-Translator: FranciscoFJ , 2022\n" 18 | "Language-Team: Spanish (Spain) (https://www.transifex.com/infotelGLPI/teams/50826/es_ES/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: es_ES\n" 23 | "Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" 24 | 25 | #: hook.php:255 hook.php:262 hook.php:269 hook.php:276 26 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 27 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:179 28 | #: inc/closeticket.class.php:330 inc/closeticket.class.php:384 29 | #: inc/config.class.php:174 30 | msgid "Close ticket informations" 31 | msgstr "Informaciones del cierre de la petición" 32 | 33 | #: hook.php:290 34 | msgid "Updated by a user" 35 | msgstr "Actualizado por un usuario" 36 | 37 | #: setup.php:117 inc/profile.class.php:49 inc/profile.class.php:194 38 | msgid "More ticket" 39 | msgstr "Más peticiones" 40 | 41 | #: front/config.form.php:66 42 | msgid "Please activate the plugin" 43 | msgstr "Por favor active el complemento" 44 | 45 | #: inc/closeticket.class.php:136 inc/closeticket.class.php:496 46 | msgid "Solution description" 47 | msgstr "Descripción de la solución " 48 | 49 | #: inc/closeticket.class.php:155 50 | msgid "Ticket cannot be closed" 51 | msgstr "La petición no puede ser cerrada" 52 | 53 | #: inc/closeticket.class.php:620 54 | #, php-format 55 | msgid "%1$s added closing informations" 56 | msgstr "%1$s informaciones del cierre de la petición" 57 | 58 | #: inc/closeticket.class.php:639 59 | #, php-format 60 | msgid "%1$s updated closing informations" 61 | msgstr "%1$sactualizaciones del cierre de la petición" 62 | 63 | #: inc/closeticket.class.php:658 64 | #, php-format 65 | msgid "%1$s deleted closing informations" 66 | msgstr "%1$sinformaciones del cierre apagadas" 67 | 68 | #: inc/config.class.php:147 69 | msgid "Ticket resolution and close" 70 | msgstr "Resolución y cierre de la petición" 71 | 72 | #: inc/config.class.php:149 73 | msgid "Use solution process" 74 | msgstr "Use la solución de la petición" 75 | 76 | #: inc/config.class.php:167 77 | msgid "Solution type is mandatory" 78 | msgstr "Tipo de solución es obligatorio" 79 | 80 | #: inc/config.class.php:180 81 | msgid "Status used to display solution block" 82 | msgstr "Estado utilizado para mostrar el bloque de solución" 83 | 84 | #: inc/config.class.php:193 85 | msgid "Add a followup on immediate ticket closing" 86 | msgstr "Añadir un seguimiento en el cierre inmediato de la petición" 87 | 88 | #: inc/config.class.php:199 89 | msgid "Use the 'Duration' field in the add solution interface" 90 | msgstr "Utilice el campo 'Duración' en la interfaz de agregar solución" 91 | 92 | #: inc/config.class.php:213 93 | msgid "Mandatory 'Duration' field" 94 | msgstr "El campo 'Duración' es obligatorio" 95 | 96 | #: inc/config.class.php:218 97 | msgid "Ticket urgency" 98 | msgstr "Urgencia de la petición" 99 | 100 | #: inc/config.class.php:220 101 | msgid "Use a justification of the urgency field" 102 | msgstr "Utilizar una justificación del campo de urgencia." 103 | 104 | #: inc/config.class.php:236 105 | msgid "Urgency impacted justification for the field" 106 | msgstr "Justificativa de la urgencia de impacto en un campo" 107 | 108 | #: inc/config.class.php:264 109 | msgid "Update ticket status" 110 | msgstr "Actualizar el estado de la petición" 111 | 112 | #: inc/config.class.php:267 113 | msgid "Update ticket status to processing after add document" 114 | msgstr "" 115 | "Actualizar el estado de la petición para procesar después de agregar el " 116 | "documento" 117 | 118 | #: inc/config.class.php:273 119 | msgid "Update ticket status to processing after approval" 120 | msgstr "" 121 | "Actualizar el estado de la petición a procesar después de la aprobación" 122 | 123 | #: inc/profile.class.php:158 124 | msgid "Adding a justification of urgency" 125 | msgstr "Añadiendo una justificación de urgencia" 126 | 127 | #: inc/profile.class.php:166 128 | msgid "Hide task duration in tickets" 129 | msgstr "Ocultar la duración de la tarea en las peticiones" 130 | 131 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:164 132 | msgid "Justification" 133 | msgstr "Justificación" 134 | 135 | #: inc/urgencyticket.class.php:92 136 | msgid "Urgency ticket cannot be saved" 137 | msgstr "Petición de urgencia no se puede guardar" 138 | 139 | #: inc/urgencyticket.class.php:94 140 | msgid "Ticket cannot be saved" 141 | msgstr "La petición no se puede guardar" 142 | 143 | #: inc/waitingtype.class.php:48 144 | msgid "Waiting type" 145 | msgid_plural "Waiting types" 146 | msgstr[0] "Tipo de espera" 147 | msgstr[1] "Tipos de espera" 148 | msgstr[2] "Tipos de espera" 149 | -------------------------------------------------------------------------------- /locales/fi_FI.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/fi_FI.mo -------------------------------------------------------------------------------- /locales/fi_FI.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # 5 | # Translators: 6 | # Markku Vepsä, 2018 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: GLPI Project - moreticket plugin\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2019-02-26 15:54+0100\n" 12 | "PO-Revision-Date: 2019-02-26 15:09+0000\n" 13 | "Last-Translator: Mathieu Templier \n" 14 | "Language-Team: Finnish (Finland) (http://www.transifex.com/tsmr/GLPI_moreticket/language/fi_FI/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: fi_FI\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: hook.php:200 inc/waitingticket.class.php:139 22 | #: inc/waitingticket.class.php:238 inc/waitingticket.class.php:317 23 | #: inc/waitingticket.class.php:390 24 | msgid "Reason" 25 | msgstr "Syy" 26 | 27 | #: hook.php:208 inc/waitingticket.class.php:131 28 | #: inc/waitingticket.class.php:253 inc/waitingticket.class.php:332 29 | #: inc/waitingticket.class.php:392 30 | msgid "Postponement date" 31 | msgstr "Lykkäyspäivä" 32 | 33 | #: hook.php:228 hook.php:235 hook.php:242 hook.php:249 34 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 35 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:178 36 | #: inc/closeticket.class.php:326 inc/closeticket.class.php:380 37 | #: inc/config.class.php:167 38 | msgid "Close ticket informations" 39 | msgstr "Sulje tiketin tiedot" 40 | 41 | #: setup.php:94 inc/profile.class.php:49 inc/profile.class.php:194 42 | msgid "More ticket" 43 | msgstr "Lisää tiketöintiä" 44 | 45 | #: front/config.form.php:66 46 | msgid "Please activate the plugin" 47 | msgstr "Ole hyvä ja aktivoi liitännäinen" 48 | 49 | #: inc/closeticket.class.php:135 inc/closeticket.class.php:479 50 | msgid "Solution description" 51 | msgstr "Ratkaisun kuvaus" 52 | 53 | #: inc/closeticket.class.php:154 54 | msgid "Ticket cannot be closed" 55 | msgstr "Tikettiä ei voida sulkea" 56 | 57 | #: inc/closeticket.class.php:576 58 | #, php-format 59 | msgid "%1$s added closing informations" 60 | msgstr "%1$s lisätty sulkemista koskevat tiedot" 61 | 62 | #: inc/closeticket.class.php:595 63 | #, php-format 64 | msgid "%1$s updated closing informations" 65 | msgstr "%1$s päivitetty sulkemista koskevat tiedot" 66 | 67 | #: inc/closeticket.class.php:614 68 | #, php-format 69 | msgid "%1$s deleted closing informations" 70 | msgstr "%1$s poistettu sulkemista koskevat tiedot" 71 | 72 | #: inc/config.class.php:98 73 | msgid "Ticket waiting" 74 | msgstr "Odottava tiketti" 75 | 76 | #: inc/config.class.php:102 77 | msgid "Use waiting process" 78 | msgstr "Käytä odotus menetelmää" 79 | 80 | #: inc/config.class.php:120 81 | msgid "Report date is mandatory" 82 | msgstr "Raportin päivämäärä on pakollinen" 83 | 84 | #: inc/config.class.php:127 85 | msgid "Waiting type is mandatory" 86 | msgstr "Odotuksen tyyppi on pakollinen" 87 | 88 | #: inc/config.class.php:134 89 | msgid "Waiting reason is mandatory" 90 | msgstr "Odotuksen syy on pakollinen" 91 | 92 | #: inc/config.class.php:140 93 | msgid "Ticket resolution and close" 94 | msgstr "Tiketin ratkaisu ja sulkeminen" 95 | 96 | #: inc/config.class.php:142 97 | msgid "Use solution process" 98 | msgstr "Käytä ratkaisuprosessia" 99 | 100 | #: inc/config.class.php:160 101 | msgid "Solution type is mandatory" 102 | msgstr "Ratkaisun tyyppi on pakollinen" 103 | 104 | #: inc/config.class.php:173 105 | msgid "Status used to display solution bloc" 106 | msgstr "Tila, jota käytetään näyttämään ratkaisuryhmä" 107 | 108 | #: inc/config.class.php:186 109 | msgid "Add a followup on immediate ticket closing" 110 | msgstr "Lisää seuranta välittömään tiketin sulkemiseen" 111 | 112 | #: inc/config.class.php:192 113 | msgid "Use the 'Duration' field in the add solution interface" 114 | msgstr "Käytä Lisää ratkaisu -rajapinnan 'Kesto' -kenttää" 115 | 116 | #: inc/config.class.php:206 117 | msgid "Mandatory 'Duration' field" 118 | msgstr "Pakollinen 'Kesto' -kenttä" 119 | 120 | #: inc/config.class.php:211 121 | msgid "Ticket urgency" 122 | msgstr "Tiketin kiireellisyys" 123 | 124 | #: inc/config.class.php:213 125 | msgid "Use a justification of the urgency field" 126 | msgstr "Käytä kiireellisyyskentän perustelua" 127 | 128 | #: inc/config.class.php:229 129 | msgid "Urgency impacted justification for the field" 130 | msgstr "Kiireellisyys vaikutti kentän perusteluun" 131 | 132 | #: inc/profile.class.php:158 133 | msgid "Adding a justification of urgency" 134 | msgstr "Lisää perustelu kiireellisyydelle" 135 | 136 | #: inc/profile.class.php:166 137 | msgid "Hide task duration in tickets" 138 | msgstr "" 139 | 140 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:155 141 | msgid "Justification" 142 | msgstr "Perustelu" 143 | 144 | #: inc/urgencyticket.class.php:92 145 | msgid "Urgency ticket cannot be saved" 146 | msgstr "Kiireellisyys tikettiä ei voida tallentaa" 147 | 148 | #: inc/urgencyticket.class.php:94 inc/waitingticket.class.php:171 149 | msgid "Ticket cannot be saved" 150 | msgstr "Tikettiä ei voida tallentaa" 151 | 152 | #: inc/waitingticket.class.php:65 153 | msgid "Waiting ticket" 154 | msgid_plural "Waiting tickets" 155 | msgstr[0] "Odottava tiketti" 156 | msgstr[1] "Odottavat tiketit" 157 | 158 | #: inc/waitingticket.class.php:169 159 | msgid "Waiting ticket cannot be saved" 160 | msgstr "Odottavaa tikettiä ei voida tallentaa" 161 | 162 | #: inc/waitingticket.class.php:175 163 | msgid "Report date is inferior of today's date" 164 | msgstr "Raportin päivämäärä on tätä päivää aiempi" 165 | 166 | #: inc/waitingticket.class.php:386 inc/waitingticket.class.php:426 167 | msgid "Ticket suspension history" 168 | msgstr "Tiketin keskeytys historia" 169 | 170 | #: inc/waitingticket.class.php:389 171 | msgid "Suspension date" 172 | msgstr "Keskeytyspäivä" 173 | 174 | #: inc/waitingticket.class.php:393 175 | msgid "Suspension end date" 176 | msgstr "Keskeytyksen päättymispäivä" 177 | 178 | #: inc/waitingticket.class.php:751 179 | msgid "End of standby ticket" 180 | msgstr "Tiketin valmiustilan loppu" 181 | 182 | #: inc/waitingtype.class.php:48 183 | msgid "Waiting type" 184 | msgid_plural "Waiting types" 185 | msgstr[0] "Odotuksen tyyppi" 186 | msgstr[1] "Odotuksien tyypit" 187 | -------------------------------------------------------------------------------- /locales/fr_CA.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/fr_CA.mo -------------------------------------------------------------------------------- /locales/fr_CA.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # Tiago Graça, 2022 8 | # Xavier CAILLAUD , 2022 9 | # 10 | #, fuzzy 11 | msgid "" 12 | msgstr "" 13 | "Project-Id-Version: GLPI - MoreTicket plugin\n" 14 | "Report-Msgid-Bugs-To: \n" 15 | "POT-Creation-Date: 2022-04-25 08:43+0000\n" 16 | "PO-Revision-Date: 2020-11-02 16:11+0000\n" 17 | "Last-Translator: Xavier CAILLAUD , 2022\n" 18 | "Language-Team: French (Canada) (https://www.transifex.com/infotelGLPI/teams/50826/fr_CA/)\n" 19 | "MIME-Version: 1.0\n" 20 | "Content-Type: text/plain; charset=UTF-8\n" 21 | "Content-Transfer-Encoding: 8bit\n" 22 | "Language: fr_CA\n" 23 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 24 | 25 | #: hook.php:254 hook.php:261 hook.php:268 hook.php:275 26 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 27 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:179 28 | #: inc/closeticket.class.php:330 inc/closeticket.class.php:384 29 | #: inc/config.class.php:174 30 | msgid "Close ticket informations" 31 | msgstr "Informations de clôture des tickets" 32 | 33 | #: hook.php:289 34 | msgid "Updated by a user" 35 | msgstr "Mis à jour par un utilisateur" 36 | 37 | #: setup.php:117 inc/profile.class.php:49 inc/profile.class.php:194 38 | msgid "More ticket" 39 | msgstr "Plus de ticket" 40 | 41 | #: front/config.form.php:66 42 | msgid "Please activate the plugin" 43 | msgstr "Merci d'activer le plugin" 44 | 45 | #: inc/closeticket.class.php:136 inc/closeticket.class.php:496 46 | msgid "Solution description" 47 | msgstr "Description de la solution" 48 | 49 | #: inc/closeticket.class.php:155 50 | msgid "Ticket cannot be closed" 51 | msgstr "Impossible de clore le ticket" 52 | 53 | #: inc/closeticket.class.php:620 54 | #, php-format 55 | msgid "%1$s added closing informations" 56 | msgstr "%1$s a ajouté des informations de clôture" 57 | 58 | #: inc/closeticket.class.php:639 59 | #, php-format 60 | msgid "%1$s updated closing informations" 61 | msgstr "%1$s a mis à jour des informations de clôture" 62 | 63 | #: inc/closeticket.class.php:658 64 | #, php-format 65 | msgid "%1$s deleted closing informations" 66 | msgstr "%1$s a supprimé des informations de clôture" 67 | 68 | #: inc/config.class.php:147 69 | msgid "Ticket resolution and close" 70 | msgstr "Résolution et clôture du ticket" 71 | 72 | #: inc/config.class.php:149 73 | msgid "Use solution process" 74 | msgstr "Utiliser le bloc solution à la création du ticket" 75 | 76 | #: inc/config.class.php:167 77 | msgid "Solution type is mandatory" 78 | msgstr "Le type de solution est obligatoire" 79 | 80 | #: inc/config.class.php:180 81 | msgid "Status used to display solution block" 82 | msgstr "Statuts utilisés pour afficher le bloc de solution" 83 | 84 | #: inc/config.class.php:193 85 | msgid "Add a followup on immediate ticket closing" 86 | msgstr "Ajouter un suivi lors de la clôture du ticket" 87 | 88 | #: inc/config.class.php:199 89 | msgid "Use the 'Duration' field in the add solution interface" 90 | msgstr "Utilisez le champ 'Durée' dans l'interface d'ajout de solution." 91 | 92 | #: inc/config.class.php:213 93 | msgid "Mandatory 'Duration' field" 94 | msgstr "Champ 'Durée' obligatoire" 95 | 96 | #: inc/config.class.php:218 97 | msgid "Ticket urgency" 98 | msgstr "Urgence de ticket" 99 | 100 | #: inc/config.class.php:220 101 | msgid "Use a justification of the urgency field" 102 | msgstr "Utiliser une zone de justification sur l'urgence" 103 | 104 | #: inc/config.class.php:236 105 | msgid "Urgency impacted justification for the field" 106 | msgstr "Urgences impactées pour la zone de justification" 107 | 108 | #: inc/config.class.php:264 109 | msgid "Update ticket status" 110 | msgstr "Mise à jour des statuts de tickets" 111 | 112 | #: inc/config.class.php:267 113 | msgid "Update ticket status to processing after add document" 114 | msgstr "Mise à jour du statut du ticket à en cours après ajout d'un document" 115 | 116 | #: inc/config.class.php:273 117 | msgid "Update ticket status to processing after approval" 118 | msgstr "Mise à jour du statut du ticket à en cours après approbation" 119 | 120 | #: inc/profile.class.php:158 121 | msgid "Adding a justification of urgency" 122 | msgstr "Ajout d'une zone de justification pour l'urgence" 123 | 124 | #: inc/profile.class.php:166 125 | msgid "Hide task duration in tickets" 126 | msgstr "Cacher la durée des tâches des tickets" 127 | 128 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:164 129 | msgid "Justification" 130 | msgstr "Justification" 131 | 132 | #: inc/urgencyticket.class.php:92 133 | msgid "Urgency ticket cannot be saved" 134 | msgstr "Impossible d'enregistrer l'urgence du ticket" 135 | 136 | #: inc/urgencyticket.class.php:94 137 | msgid "Ticket cannot be saved" 138 | msgstr "Impossible d'enregistrer le ticket" 139 | 140 | #: inc/waitingtype.class.php:48 141 | msgid "Waiting type" 142 | msgid_plural "Waiting types" 143 | msgstr[0] "Type d'attente" 144 | msgstr[1] "Types d'attente" 145 | -------------------------------------------------------------------------------- /locales/fr_FR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/fr_FR.mo -------------------------------------------------------------------------------- /locales/glpi.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: GLPI - MoreTicket plugin\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2025-03-10 11:15+0000\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=CHARSET\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 20 | 21 | #: hook.php:261 hook.php:268 hook.php:275 hook.php:282 22 | #: inc/closeticket.class.php:77 inc/closeticket.class.php:84 23 | #: inc/closeticket.class.php:125 inc/closeticket.class.php:192 24 | #: inc/closeticket.class.php:348 inc/closeticket.class.php:402 25 | #: inc/config.class.php:195 26 | msgid "Close ticket informations" 27 | msgstr "" 28 | 29 | #: hook.php:296 30 | msgid "Updated by a user" 31 | msgstr "" 32 | 33 | #: setup.php:121 inc/profile.class.php:50 inc/profile.class.php:212 34 | msgid "More ticket" 35 | msgstr "" 36 | 37 | #: front/config.form.php:65 38 | msgid "Please activate the plugin" 39 | msgstr "" 40 | 41 | #: inc/closeticket.class.php:141 inc/closeticket.class.php:524 42 | msgid "Solution description" 43 | msgstr "" 44 | 45 | #: inc/closeticket.class.php:161 46 | msgid "Ticket cannot be closed" 47 | msgstr "" 48 | 49 | #: inc/closeticket.class.php:681 50 | #, php-format 51 | msgid "%1$s added closing informations" 52 | msgstr "" 53 | 54 | #: inc/closeticket.class.php:702 55 | #, php-format 56 | msgid "%1$s updated closing informations" 57 | msgstr "" 58 | 59 | #: inc/closeticket.class.php:723 60 | #, php-format 61 | msgid "%1$s deleted closing informations" 62 | msgstr "" 63 | 64 | #: inc/config.class.php:98 inc/waitingticket.class.php:929 65 | msgid "Ticket waiting" 66 | msgstr "" 67 | 68 | #: inc/config.class.php:102 69 | msgid "Use waiting process" 70 | msgstr "" 71 | 72 | #: inc/config.class.php:120 73 | msgid "Postponement date is mandatory" 74 | msgstr "" 75 | 76 | #: inc/config.class.php:135 77 | msgid "Waiting reason is mandatory" 78 | msgstr "" 79 | 80 | #: inc/config.class.php:142 81 | msgid "Add followup when waiting date is reached" 82 | msgstr "" 83 | 84 | #: inc/config.class.php:149 85 | msgid "Check by default to put the ticket on waiting when adding a follow-up" 86 | msgstr "" 87 | 88 | #: inc/config.class.php:156 89 | msgid "Check by default to put the ticket on waiting when adding a task" 90 | msgstr "" 91 | 92 | #: inc/config.class.php:168 93 | msgid "Ticket resolution and close" 94 | msgstr "" 95 | 96 | #: inc/config.class.php:170 97 | msgid "Use solution process" 98 | msgstr "" 99 | 100 | #: inc/config.class.php:188 101 | msgid "Solution type is mandatory" 102 | msgstr "" 103 | 104 | #: inc/config.class.php:201 105 | msgid "Status used to display solution block" 106 | msgstr "" 107 | 108 | #: inc/config.class.php:214 109 | msgid "Add a followup on immediate ticket closing" 110 | msgstr "" 111 | 112 | #: inc/config.class.php:220 113 | msgid "Use the 'Duration' field in the add solution interface" 114 | msgstr "" 115 | 116 | #: inc/config.class.php:234 117 | msgid "Mandatory 'Duration' field" 118 | msgstr "" 119 | 120 | #: inc/config.class.php:239 121 | msgid "Ticket urgency" 122 | msgstr "" 123 | 124 | #: inc/config.class.php:241 125 | msgid "Use a justification of the urgency field" 126 | msgstr "" 127 | 128 | #: inc/config.class.php:257 129 | msgid "Urgency impacted justification for the field" 130 | msgstr "" 131 | 132 | #: inc/config.class.php:279 133 | msgid "Update ticket status" 134 | msgstr "" 135 | 136 | #: inc/config.class.php:282 137 | msgid "Update ticket status to processing after add document" 138 | msgstr "" 139 | 140 | #: inc/config.class.php:288 141 | msgid "Update ticket status to processing after approval" 142 | msgstr "" 143 | 144 | #: inc/config.class.php:295 145 | msgid "Update ticket status to pending after a technician adds a follow up" 146 | msgstr "" 147 | 148 | #: inc/config.class.php:301 149 | msgid "Update ticket status to pending after a technician adds a task" 150 | msgstr "" 151 | 152 | #: inc/profile.class.php:175 153 | msgid "Adding a justification of urgency" 154 | msgstr "" 155 | 156 | #: inc/profile.class.php:183 157 | msgid "Hide task duration in tickets" 158 | msgstr "" 159 | 160 | #: inc/urgencyticket.class.php:70 inc/urgencyticket.class.php:167 161 | msgid "Justification" 162 | msgstr "" 163 | 164 | #: inc/urgencyticket.class.php:93 165 | msgid "Urgency ticket cannot be saved" 166 | msgstr "" 167 | 168 | #: inc/urgencyticket.class.php:95 inc/waitingticket.class.php:169 169 | msgid "Ticket cannot be saved" 170 | msgstr "" 171 | 172 | #: inc/waitingticket.class.php:65 173 | msgid "Waiting ticket" 174 | msgid_plural "Waiting tickets" 175 | msgstr[0] "" 176 | msgstr[1] "" 177 | 178 | #: inc/waitingticket.class.php:133 inc/waitingticket.class.php:252 179 | #: inc/waitingticket.class.php:328 inc/waitingticket.class.php:436 180 | msgid "Postponement date" 181 | msgstr "" 182 | 183 | #: inc/waitingticket.class.php:137 inc/waitingticket.class.php:236 184 | #: inc/waitingticket.class.php:321 inc/waitingticket.class.php:434 185 | msgid "Reason" 186 | msgstr "" 187 | 188 | #: inc/waitingticket.class.php:167 189 | msgid "Waiting ticket cannot be saved" 190 | msgstr "" 191 | 192 | #: inc/waitingticket.class.php:173 193 | msgid "Postponement date is inferior of today's date" 194 | msgstr "" 195 | 196 | #: inc/waitingticket.class.php:430 inc/waitingticket.class.php:473 197 | msgid "Ticket suspension history" 198 | msgstr "" 199 | 200 | #: inc/waitingticket.class.php:433 201 | msgid "Suspension date" 202 | msgstr "" 203 | 204 | #: inc/waitingticket.class.php:437 205 | msgid "Suspension end date" 206 | msgstr "" 207 | 208 | #: inc/waitingticket.class.php:839 209 | msgid "Waiting ticket exceedeed" 210 | msgstr "" 211 | 212 | #: inc/waitingticket.class.php:881 213 | msgid "End of standby ticket" 214 | msgstr "" 215 | 216 | #: inc/waitingticket.class.php:1051 217 | #, php-format 218 | msgid "%s duplicates deleted" 219 | msgstr "" 220 | 221 | #: inc/waitingtype.class.php:48 222 | msgid "Waiting type" 223 | msgid_plural "Waiting types" 224 | msgstr[0] "" 225 | msgstr[1] "" 226 | -------------------------------------------------------------------------------- /locales/it_IT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/it_IT.mo -------------------------------------------------------------------------------- /locales/ja_JP.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/ja_JP.mo -------------------------------------------------------------------------------- /locales/ja_JP.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | # Translators: 7 | # INOUE Daisuke, 2024 8 | # 9 | #, fuzzy 10 | msgid "" 11 | msgstr "" 12 | "Project-Id-Version: GLPI - MoreTicket plugin\n" 13 | "Report-Msgid-Bugs-To: \n" 14 | "POT-Creation-Date: 2024-10-30 09:33+0000\n" 15 | "PO-Revision-Date: 2020-11-02 16:11+0000\n" 16 | "Last-Translator: INOUE Daisuke, 2024\n" 17 | "Language-Team: Japanese (Japan) (https://app.transifex.com/infotelGLPI/teams/50826/ja_JP/)\n" 18 | "MIME-Version: 1.0\n" 19 | "Content-Type: text/plain; charset=UTF-8\n" 20 | "Content-Transfer-Encoding: 8bit\n" 21 | "Language: ja_JP\n" 22 | "Plural-Forms: nplurals=1; plural=0;\n" 23 | 24 | #: hook.php:261 hook.php:268 hook.php:275 hook.php:282 25 | #: inc/closeticket.class.php:77 inc/closeticket.class.php:84 26 | #: inc/closeticket.class.php:125 inc/closeticket.class.php:192 27 | #: inc/closeticket.class.php:348 inc/closeticket.class.php:402 28 | #: inc/config.class.php:195 29 | msgid "Close ticket informations" 30 | msgstr "チケット終了情報" 31 | 32 | #: hook.php:296 33 | msgid "Updated by a user" 34 | msgstr "ユーザーが更新" 35 | 36 | #: setup.php:121 inc/profile.class.php:50 inc/profile.class.php:212 37 | msgid "More ticket" 38 | msgstr "チケット拡張" 39 | 40 | #: front/config.form.php:65 41 | msgid "Please activate the plugin" 42 | msgstr "プラグインを有効にしてください" 43 | 44 | #: inc/closeticket.class.php:141 inc/closeticket.class.php:524 45 | msgid "Solution description" 46 | msgstr "解決情報" 47 | 48 | #: inc/closeticket.class.php:161 49 | msgid "Ticket cannot be closed" 50 | msgstr "チケットを終了できません" 51 | 52 | #: inc/closeticket.class.php:681 53 | #, php-format 54 | msgid "%1$s added closing informations" 55 | msgstr "%1$s が終了情報を追加" 56 | 57 | #: inc/closeticket.class.php:702 58 | #, php-format 59 | msgid "%1$s updated closing informations" 60 | msgstr "%1$s が終了情報を更新" 61 | 62 | #: inc/closeticket.class.php:723 63 | #, php-format 64 | msgid "%1$s deleted closing informations" 65 | msgstr "%1$s が終了情報を削除" 66 | 67 | #: inc/config.class.php:98 inc/waitingticket.class.php:929 68 | msgid "Ticket waiting" 69 | msgstr "保留チケット" 70 | 71 | #: inc/config.class.php:102 72 | msgid "Use waiting process" 73 | msgstr "保留処理を利用する" 74 | 75 | #: inc/config.class.php:120 76 | msgid "Postponement date is mandatory" 77 | msgstr "再開予定日を必須に" 78 | 79 | #: inc/config.class.php:135 80 | msgid "Waiting reason is mandatory" 81 | msgstr "保留理由を必須に" 82 | 83 | #: inc/config.class.php:142 84 | msgid "Add followup when waiting date is reached" 85 | msgstr "再開日に達したらフォローを追加する" 86 | 87 | #: inc/config.class.php:149 88 | msgid "Check by default to put the ticket on waiting when adding a follow-up" 89 | msgstr "標準で回答を追加したらチケットを保留中にする場合はチェック" 90 | 91 | #: inc/config.class.php:156 92 | msgid "Check by default to put the ticket on waiting when adding a task" 93 | msgstr "標準でタスクを追加したらチケットを保留中にする場合はチェック" 94 | 95 | #: inc/config.class.php:168 96 | msgid "Ticket resolution and close" 97 | msgstr "チケットの解決と終了" 98 | 99 | #: inc/config.class.php:170 100 | msgid "Use solution process" 101 | msgstr "解決処理を利用する" 102 | 103 | #: inc/config.class.php:188 104 | msgid "Solution type is mandatory" 105 | msgstr "解決の型を必須に" 106 | 107 | #: inc/config.class.php:201 108 | msgid "Status used to display solution block" 109 | msgstr "解決ブロック表示で利用する状態" 110 | 111 | #: inc/config.class.php:214 112 | msgid "Add a followup on immediate ticket closing" 113 | msgstr "チケットの終了直後にフォローを追加する" 114 | 115 | #: inc/config.class.php:220 116 | msgid "Use the 'Duration' field in the add solution interface" 117 | msgstr "解決の追加画面で「期間」項目を利用する" 118 | 119 | #: inc/config.class.php:234 120 | msgid "Mandatory 'Duration' field" 121 | msgstr "「期間」項目を必須に" 122 | 123 | #: inc/config.class.php:239 124 | msgid "Ticket urgency" 125 | msgstr "チケットの緊急性" 126 | 127 | #: inc/config.class.php:241 128 | msgid "Use a justification of the urgency field" 129 | msgstr "緊急性項目で正当性を利用する" 130 | 131 | #: inc/config.class.php:257 132 | msgid "Urgency impacted justification for the field" 133 | msgstr "項目の正当性に影響を与える緊急度" 134 | 135 | #: inc/config.class.php:279 136 | msgid "Update ticket status" 137 | msgstr "チケットの状態を更新" 138 | 139 | #: inc/config.class.php:282 140 | msgid "Update ticket status to processing after add document" 141 | msgstr "文書を追加したら、チケットの状態を「対応中」に更新する" 142 | 143 | #: inc/config.class.php:288 144 | msgid "Update ticket status to processing after approval" 145 | msgstr "承認を受けたら、チケットの状態を「対応中」に更新する" 146 | 147 | #: inc/config.class.php:295 148 | msgid "Update ticket status to pending after a technician adds a follow up" 149 | msgstr "技術者が回答を追加したら、チケットの状態を保留中に更新する" 150 | 151 | #: inc/config.class.php:301 152 | msgid "Update ticket status to pending after a technician adds a task" 153 | msgstr "技術者がタスクを追加したら、チケットの状態を保留中に更新する" 154 | 155 | #: inc/profile.class.php:175 156 | msgid "Adding a justification of urgency" 157 | msgstr "緊急性に正当性を追加" 158 | 159 | #: inc/profile.class.php:183 160 | msgid "Hide task duration in tickets" 161 | msgstr "チケットにタスクの期間を表示しない" 162 | 163 | #: inc/urgencyticket.class.php:70 inc/urgencyticket.class.php:167 164 | msgid "Justification" 165 | msgstr "正当性" 166 | 167 | #: inc/urgencyticket.class.php:93 168 | msgid "Urgency ticket cannot be saved" 169 | msgstr "チケットの緊急性を保存できません" 170 | 171 | #: inc/urgencyticket.class.php:95 inc/waitingticket.class.php:169 172 | msgid "Ticket cannot be saved" 173 | msgstr "チケットを保存できません" 174 | 175 | #: inc/waitingticket.class.php:65 176 | msgid "Waiting ticket" 177 | msgid_plural "Waiting tickets" 178 | msgstr[0] "保留チケット" 179 | 180 | #: inc/waitingticket.class.php:133 inc/waitingticket.class.php:252 181 | #: inc/waitingticket.class.php:328 inc/waitingticket.class.php:436 182 | msgid "Postponement date" 183 | msgstr "再開予定日" 184 | 185 | #: inc/waitingticket.class.php:137 inc/waitingticket.class.php:236 186 | #: inc/waitingticket.class.php:321 inc/waitingticket.class.php:434 187 | msgid "Reason" 188 | msgstr "理由" 189 | 190 | #: inc/waitingticket.class.php:167 191 | msgid "Waiting ticket cannot be saved" 192 | msgstr "保留チケットを保存できません" 193 | 194 | #: inc/waitingticket.class.php:173 195 | msgid "Postponement date is inferior of today's date" 196 | msgstr "再開予定日は現在日付より未来に設定してください" 197 | 198 | #: inc/waitingticket.class.php:430 inc/waitingticket.class.php:473 199 | msgid "Ticket suspension history" 200 | msgstr "チケットの延期履歴" 201 | 202 | #: inc/waitingticket.class.php:433 203 | msgid "Suspension date" 204 | msgstr "中断日" 205 | 206 | #: inc/waitingticket.class.php:437 207 | msgid "Suspension end date" 208 | msgstr "実再開日" 209 | 210 | #: inc/waitingticket.class.php:839 211 | msgid "Waiting ticket exceedeed" 212 | msgstr "チケットの保留を延長" 213 | 214 | #: inc/waitingticket.class.php:881 215 | msgid "End of standby ticket" 216 | msgstr "準備チケットの終了" 217 | 218 | #: inc/waitingticket.class.php:1051 219 | #, php-format 220 | msgid "%s duplicates deleted" 221 | msgstr "%s 件の重複を削除しました" 222 | 223 | #: inc/waitingtype.class.php:48 224 | msgid "Waiting type" 225 | msgid_plural "Waiting types" 226 | msgstr[0] "保留型" 227 | -------------------------------------------------------------------------------- /locales/pl_PL.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/pl_PL.mo -------------------------------------------------------------------------------- /locales/pt_BR.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/pt_BR.mo -------------------------------------------------------------------------------- /locales/pt_PT.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/pt_PT.mo -------------------------------------------------------------------------------- /locales/pt_PT.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # 5 | # Translators: 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: GLPI Project - moreticket plugin\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2019-02-26 15:54+0100\n" 11 | "PO-Revision-Date: 2019-02-26 15:09+0000\n" 12 | "Last-Translator: Mathieu Templier \n" 13 | "Language-Team: Portuguese (Portugal) (http://www.transifex.com/tsmr/GLPI_moreticket/language/pt_PT/)\n" 14 | "MIME-Version: 1.0\n" 15 | "Content-Type: text/plain; charset=UTF-8\n" 16 | "Content-Transfer-Encoding: 8bit\n" 17 | "Language: pt_PT\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | 20 | #: hook.php:200 inc/waitingticket.class.php:139 21 | #: inc/waitingticket.class.php:238 inc/waitingticket.class.php:317 22 | #: inc/waitingticket.class.php:390 23 | msgid "Reason" 24 | msgstr "Razão" 25 | 26 | #: hook.php:208 inc/waitingticket.class.php:131 27 | #: inc/waitingticket.class.php:253 inc/waitingticket.class.php:332 28 | #: inc/waitingticket.class.php:392 29 | msgid "Postponement date" 30 | msgstr "Data de adiamento" 31 | 32 | #: hook.php:228 hook.php:235 hook.php:242 hook.php:249 33 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 34 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:178 35 | #: inc/closeticket.class.php:326 inc/closeticket.class.php:380 36 | #: inc/config.class.php:167 37 | msgid "Close ticket informations" 38 | msgstr "Fechar informações do ticket" 39 | 40 | #: setup.php:94 inc/profile.class.php:49 inc/profile.class.php:194 41 | msgid "More ticket" 42 | msgstr "Mais incidência" 43 | 44 | #: front/config.form.php:66 45 | msgid "Please activate the plugin" 46 | msgstr "Por favor active o plugin" 47 | 48 | #: inc/closeticket.class.php:135 inc/closeticket.class.php:479 49 | msgid "Solution description" 50 | msgstr "Descrição da solução" 51 | 52 | #: inc/closeticket.class.php:154 53 | msgid "Ticket cannot be closed" 54 | msgstr "Incidência não pode ser fechada" 55 | 56 | #: inc/closeticket.class.php:576 57 | #, php-format 58 | msgid "%1$s added closing informations" 59 | msgstr "%1$s adicionou informações de fecho" 60 | 61 | #: inc/closeticket.class.php:595 62 | #, php-format 63 | msgid "%1$s updated closing informations" 64 | msgstr "%1$s actualizou informações de fecho" 65 | 66 | #: inc/closeticket.class.php:614 67 | #, php-format 68 | msgid "%1$s deleted closing informations" 69 | msgstr "%1$s apagou informações de fecho" 70 | 71 | #: inc/config.class.php:98 72 | msgid "Ticket waiting" 73 | msgstr "" 74 | 75 | #: inc/config.class.php:102 76 | msgid "Use waiting process" 77 | msgstr "Usar processo de espera" 78 | 79 | #: inc/config.class.php:120 80 | msgid "Report date is mandatory" 81 | msgstr "Data de reporte obrigatória" 82 | 83 | #: inc/config.class.php:127 84 | msgid "Waiting type is mandatory" 85 | msgstr "Tipo de espera é mandatório" 86 | 87 | #: inc/config.class.php:134 88 | msgid "Waiting reason is mandatory" 89 | msgstr "Razão de espera é mandatório" 90 | 91 | #: inc/config.class.php:140 92 | msgid "Ticket resolution and close" 93 | msgstr "" 94 | 95 | #: inc/config.class.php:142 96 | msgid "Use solution process" 97 | msgstr "Usar processo de solução" 98 | 99 | #: inc/config.class.php:160 100 | msgid "Solution type is mandatory" 101 | msgstr "Tipo de solução é mandatório" 102 | 103 | #: inc/config.class.php:173 104 | msgid "Status used to display solution bloc" 105 | msgstr "Estado para mostrar bloco de solução" 106 | 107 | #: inc/config.class.php:186 108 | msgid "Add a followup on immediate ticket closing" 109 | msgstr "Adicionar um acompanhamento após fecho da incidência" 110 | 111 | #: inc/config.class.php:192 112 | msgid "Use the 'Duration' field in the add solution interface" 113 | msgstr "" 114 | 115 | #: inc/config.class.php:206 116 | msgid "Mandatory 'Duration' field" 117 | msgstr "" 118 | 119 | #: inc/config.class.php:211 120 | msgid "Ticket urgency" 121 | msgstr "" 122 | 123 | #: inc/config.class.php:213 124 | msgid "Use a justification of the urgency field" 125 | msgstr "Usar um campo de justificação de urgência " 126 | 127 | #: inc/config.class.php:229 128 | msgid "Urgency impacted justification for the field" 129 | msgstr "Justificação de impacto da urgência para o campo" 130 | 131 | #: inc/profile.class.php:158 132 | msgid "Adding a justification of urgency" 133 | msgstr "A adicionar uma justificação de urgência" 134 | 135 | #: inc/profile.class.php:166 136 | msgid "Hide task duration in tickets" 137 | msgstr "" 138 | 139 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:155 140 | msgid "Justification" 141 | msgstr "Justificação" 142 | 143 | #: inc/urgencyticket.class.php:92 144 | msgid "Urgency ticket cannot be saved" 145 | msgstr "Incidência de urgência não pode ser guardada" 146 | 147 | #: inc/urgencyticket.class.php:94 inc/waitingticket.class.php:171 148 | msgid "Ticket cannot be saved" 149 | msgstr "Incidência não pode ser guardada" 150 | 151 | #: inc/waitingticket.class.php:65 152 | msgid "Waiting ticket" 153 | msgid_plural "Waiting tickets" 154 | msgstr[0] "Incidência em espera" 155 | msgstr[1] "Incidências em espera" 156 | 157 | #: inc/waitingticket.class.php:169 158 | msgid "Waiting ticket cannot be saved" 159 | msgstr "Incidência de espera não pode ser guardada" 160 | 161 | #: inc/waitingticket.class.php:175 162 | msgid "Report date is inferior of today's date" 163 | msgstr "Data de reporte é inferior à data de hoje" 164 | 165 | #: inc/waitingticket.class.php:386 inc/waitingticket.class.php:426 166 | msgid "Ticket suspension history" 167 | msgstr "Histórico de suspensão da incidência" 168 | 169 | #: inc/waitingticket.class.php:389 170 | msgid "Suspension date" 171 | msgstr "Data de suspensão" 172 | 173 | #: inc/waitingticket.class.php:393 174 | msgid "Suspension end date" 175 | msgstr "Fim da data de suspensão" 176 | 177 | #: inc/waitingticket.class.php:751 178 | msgid "End of standby ticket" 179 | msgstr "Fim de espera da incidência" 180 | 181 | #: inc/waitingtype.class.php:48 182 | msgid "Waiting type" 183 | msgid_plural "Waiting types" 184 | msgstr[0] "Tipo de espera" 185 | msgstr[1] "Tipos de espera" 186 | -------------------------------------------------------------------------------- /locales/ru_RU.mo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/locales/ru_RU.mo -------------------------------------------------------------------------------- /locales/ru_RU.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR MoreTicket Development Team 3 | # This file is distributed under the same license as the GLPI - MoreTicket plugin package. 4 | # 5 | # Translators: 6 | # Alexey Petukhov , 2016 7 | # Andrey Saridzha, 2015 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: GLPI Project - moreticket plugin\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2019-02-26 15:54+0100\n" 13 | "PO-Revision-Date: 2019-02-26 15:09+0000\n" 14 | "Last-Translator: Mathieu Templier \n" 15 | "Language-Team: Russian (Russia) (http://www.transifex.com/tsmr/GLPI_moreticket/language/ru_RU/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: ru_RU\n" 20 | "Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" 21 | 22 | #: hook.php:200 inc/waitingticket.class.php:139 23 | #: inc/waitingticket.class.php:238 inc/waitingticket.class.php:317 24 | #: inc/waitingticket.class.php:390 25 | msgid "Reason" 26 | msgstr "Причина" 27 | 28 | #: hook.php:208 inc/waitingticket.class.php:131 29 | #: inc/waitingticket.class.php:253 inc/waitingticket.class.php:332 30 | #: inc/waitingticket.class.php:392 31 | msgid "Postponement date" 32 | msgstr "Дата отсрочки" 33 | 34 | #: hook.php:228 hook.php:235 hook.php:242 hook.php:249 35 | #: inc/closeticket.class.php:75 inc/closeticket.class.php:79 36 | #: inc/closeticket.class.php:121 inc/closeticket.class.php:178 37 | #: inc/closeticket.class.php:326 inc/closeticket.class.php:380 38 | #: inc/config.class.php:167 39 | msgid "Close ticket informations" 40 | msgstr "Информация о закрытии заявки" 41 | 42 | #: setup.php:94 inc/profile.class.php:49 inc/profile.class.php:194 43 | msgid "More ticket" 44 | msgstr "Еще заявка" 45 | 46 | #: front/config.form.php:66 47 | msgid "Please activate the plugin" 48 | msgstr "Включите плагин" 49 | 50 | #: inc/closeticket.class.php:135 inc/closeticket.class.php:479 51 | msgid "Solution description" 52 | msgstr "Описание решения" 53 | 54 | #: inc/closeticket.class.php:154 55 | msgid "Ticket cannot be closed" 56 | msgstr "Заявка не может быть закрыта" 57 | 58 | #: inc/closeticket.class.php:576 59 | #, php-format 60 | msgid "%1$s added closing informations" 61 | msgstr "%1$s добавлена информация при закрытии" 62 | 63 | #: inc/closeticket.class.php:595 64 | #, php-format 65 | msgid "%1$s updated closing informations" 66 | msgstr "%1$s обновлена информация при закрытии" 67 | 68 | #: inc/closeticket.class.php:614 69 | #, php-format 70 | msgid "%1$s deleted closing informations" 71 | msgstr "%1$s удалена информация при закрытии" 72 | 73 | #: inc/config.class.php:98 74 | msgid "Ticket waiting" 75 | msgstr "" 76 | 77 | #: inc/config.class.php:102 78 | msgid "Use waiting process" 79 | msgstr "Использовать процесс ожидания" 80 | 81 | #: inc/config.class.php:120 82 | msgid "Report date is mandatory" 83 | msgstr "Дата отчета является обязательным" 84 | 85 | #: inc/config.class.php:127 86 | msgid "Waiting type is mandatory" 87 | msgstr "Тип ожидания является обязательным" 88 | 89 | #: inc/config.class.php:134 90 | msgid "Waiting reason is mandatory" 91 | msgstr "Причина ожидания является обязательной" 92 | 93 | #: inc/config.class.php:140 94 | msgid "Ticket resolution and close" 95 | msgstr "" 96 | 97 | #: inc/config.class.php:142 98 | msgid "Use solution process" 99 | msgstr "Использовать процесс решения" 100 | 101 | #: inc/config.class.php:160 102 | msgid "Solution type is mandatory" 103 | msgstr "Тип решения является обязательным" 104 | 105 | #: inc/config.class.php:173 106 | msgid "Status used to display solution bloc" 107 | msgstr "Использовать статус для отображения блока решения" 108 | 109 | #: inc/config.class.php:186 110 | msgid "Add a followup on immediate ticket closing" 111 | msgstr "Добавить заметку на немедленное закрытие заявки" 112 | 113 | #: inc/config.class.php:192 114 | msgid "Use the 'Duration' field in the add solution interface" 115 | msgstr "" 116 | 117 | #: inc/config.class.php:206 118 | msgid "Mandatory 'Duration' field" 119 | msgstr "" 120 | 121 | #: inc/config.class.php:211 122 | msgid "Ticket urgency" 123 | msgstr "" 124 | 125 | #: inc/config.class.php:213 126 | msgid "Use a justification of the urgency field" 127 | msgstr "Использовать обоснование для поля срочности" 128 | 129 | #: inc/config.class.php:229 130 | msgid "Urgency impacted justification for the field" 131 | msgstr "Обоснование влияния срочности для заявки" 132 | 133 | #: inc/profile.class.php:158 134 | msgid "Adding a justification of urgency" 135 | msgstr "Добавлять обоснование срочности" 136 | 137 | #: inc/profile.class.php:166 138 | msgid "Hide task duration in tickets" 139 | msgstr "" 140 | 141 | #: inc/urgencyticket.class.php:69 inc/urgencyticket.class.php:155 142 | msgid "Justification" 143 | msgstr "Обоснование" 144 | 145 | #: inc/urgencyticket.class.php:92 146 | msgid "Urgency ticket cannot be saved" 147 | msgstr "Срочная заявка не может быть сохранена" 148 | 149 | #: inc/urgencyticket.class.php:94 inc/waitingticket.class.php:171 150 | msgid "Ticket cannot be saved" 151 | msgstr "Заявка не может быть сохранена" 152 | 153 | #: inc/waitingticket.class.php:65 154 | msgid "Waiting ticket" 155 | msgid_plural "Waiting tickets" 156 | msgstr[0] "Ожидающая заявка" 157 | msgstr[1] "Ожидающая заявка" 158 | msgstr[2] "Ожидающая заявка" 159 | msgstr[3] "Ожидающие заявки" 160 | 161 | #: inc/waitingticket.class.php:169 162 | msgid "Waiting ticket cannot be saved" 163 | msgstr "Ожидающая заявка не может быть сохранена" 164 | 165 | #: inc/waitingticket.class.php:175 166 | msgid "Report date is inferior of today's date" 167 | msgstr "Дата отчета позднее сегодняшней даты" 168 | 169 | #: inc/waitingticket.class.php:386 inc/waitingticket.class.php:426 170 | msgid "Ticket suspension history" 171 | msgstr "История приостановки заявок" 172 | 173 | #: inc/waitingticket.class.php:389 174 | msgid "Suspension date" 175 | msgstr "Дата приостановки" 176 | 177 | #: inc/waitingticket.class.php:393 178 | msgid "Suspension end date" 179 | msgstr "Дата возобновления" 180 | 181 | #: inc/waitingticket.class.php:751 182 | msgid "End of standby ticket" 183 | msgstr "Конец ожидания заявки" 184 | 185 | #: inc/waitingtype.class.php:48 186 | msgid "Waiting type" 187 | msgid_plural "Waiting types" 188 | msgstr[0] "Тип ожидания" 189 | msgstr[1] "Типы ожидания" 190 | msgstr[2] "Типы ожидания" 191 | msgstr[3] "Типы ожидания" 192 | -------------------------------------------------------------------------------- /moreticket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/InfotelGLPI/moreticket/d9670131d085de22aeb62784009c494c4c86afff/moreticket.png -------------------------------------------------------------------------------- /scripts/moreticket.js.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | 32 | //change mimetype 33 | header("Content-type: application/javascript"); 34 | 35 | //not executed in self-service interface & right verification 36 | if (Session::getCurrentInterface() == "central") { 37 | 38 | $config = new PluginMoreticketConfig(); 39 | $use_waiting = $config->useWaiting(); 40 | $use_solution = $config->useSolution(); 41 | $use_question = $config->useQuestion(); 42 | $solution_status = $config->solutionStatus(); 43 | 44 | $params = ['root_doc' => PLUGIN_MORETICKET_WEBDIR, 45 | 'waiting' => CommonITILObject::WAITING, 46 | 'closed' => CommonITILObject::CLOSED, 47 | 'use_waiting' => $use_waiting, 48 | 'use_solution' => $use_solution, 49 | 'use_question' => $use_question, 50 | 'solution_status' => $solution_status]; 51 | 52 | echo "moreticket(" . json_encode($params) . ");"; 53 | } 54 | -------------------------------------------------------------------------------- /scripts/moreticket_load_scripts.js.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | var root_moreticket_doc = ""; 9 | (function ($) { 10 | $.fn.moreticket_load_scripts = function () { 11 | 12 | init(); 13 | 14 | // Start the plugin 15 | function init() { 16 | 17 | // Send data 18 | $.ajax({ 19 | url: root_moreticket_doc + '/ajax/loadscripts.php', 20 | type: "POST", 21 | dataType: "html", 22 | data: 'action=load', 23 | success: function (response, opts) { 24 | var scripts, scriptsFinder = /]*>([\s\S]+?)<\/script>/gi; 25 | while (scripts = scriptsFinder.exec(response)) { 26 | eval(scripts[1]); 27 | } 28 | } 29 | }); 30 | } 31 | 32 | return this; 33 | }; 34 | }(jQuery)); 35 | 36 | $(document).ready(function() { 37 | setTimeout(function() { 38 | $(document).moreticket_load_scripts(); 39 | }, 1000); 40 | }); 41 | -------------------------------------------------------------------------------- /scripts/moreticket_urgency.js.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | include('../../../inc/includes.php'); 31 | 32 | //change mimetype 33 | header("Content-type: application/javascript"); 34 | 35 | //not executed in self-service interface & right verification 36 | 37 | $config = new PluginMoreticketConfig(); 38 | $use_urgency = $config->useUrgency(); 39 | $urgency_ids = $config->getUrgency_ids(); 40 | 41 | $params = array('root_doc' => PLUGIN_MORETICKET_WEBDIR, 42 | 'use_urgency' => $use_urgency, 43 | 'urgency_ids' => $urgency_ids); 44 | 45 | echo "moreticket_urgency(" . json_encode($params) . ");"; 46 | ?> 47 | -------------------------------------------------------------------------------- /setup.php: -------------------------------------------------------------------------------- 1 | . 27 | -------------------------------------------------------------------------- 28 | */ 29 | 30 | define('PLUGIN_MORETICKET_VERSION', '1.7.5'); 31 | 32 | if (!defined("PLUGIN_MORETICKET_DIR")) { 33 | define("PLUGIN_MORETICKET_DIR", Plugin::getPhpDir("moreticket")); 34 | define("PLUGIN_MORETICKET_DIR_NOFULL", Plugin::getPhpDir("moreticket", false)); 35 | define("PLUGIN_MORETICKET_WEBDIR", Plugin::getWebDir("moreticket")); 36 | } 37 | 38 | // Init the hooks of the plugins -Needed 39 | function plugin_init_moreticket() { 40 | global $PLUGIN_HOOKS; 41 | 42 | $PLUGIN_HOOKS['add_css']['moreticket'][] = 'css/moreticket.css'; 43 | $PLUGIN_HOOKS['csrf_compliant']['moreticket'] = true; 44 | $PLUGIN_HOOKS['change_profile']['moreticket'] = ['PluginMoreticketProfile', 'initProfile']; 45 | 46 | if (Session::getLoginUserID()) { 47 | Plugin::registerClass('PluginMoreticketProfile', ['addtabon' => 'Profile']); 48 | 49 | if (class_exists('PluginMoreticketProfile')) { // only if plugin activated 50 | $config = new PluginMoreticketConfig(); 51 | 52 | // if (Session::haveRight("plugin_moreticket_justification", READ)) { 53 | $PLUGIN_HOOKS['add_javascript']['moreticket'] = ["scripts/moreticket.js"]; 54 | // } 55 | if ($config->useDurationSolution() == true) { 56 | $PLUGIN_HOOKS['pre_item_add']['moreticket'] = 57 | ['ITILSolution' => ['PluginMoreticketSolution', 'beforeAdd']]; 58 | } 59 | 60 | if (Session::haveRight("plugin_moreticket", UPDATE) 61 | || Session::haveRight("plugin_moreticket_justification", READ)) { 62 | if (strpos($_SERVER['REQUEST_URI'], "ticket.form.php") !== false 63 | || strpos($_SERVER['REQUEST_URI'], "newticket.form.php") !== false 64 | || strpos($_SERVER['REQUEST_URI'], "helpdesk.public.php") !== false 65 | || strpos($_SERVER['REQUEST_URI'], "tracking.injector.php") !== false 66 | && ( 67 | $config->useWaiting() == true || 68 | $config->useSolution() == true 69 | // || $config->useQuestion() == true 70 | || $config->useUrgency() == true 71 | || $config->useDurationSolution() == true)) { 72 | $PLUGIN_HOOKS['add_javascript']['moreticket'][] = 'scripts/moreticket_load_scripts.js.php'; 73 | } 74 | $PLUGIN_HOOKS['config_page']['moreticket'] = 'front/config.form.php'; 75 | 76 | $PLUGIN_HOOKS['post_prepareadd']['moreticket'] = ['TicketTask' => ['PluginMoreticketTicketTask', 'beforeAdd'], 77 | 'ITILFollowup' => ['PluginMoreticketTicketFollowup', 'beforeAdd']]; 78 | 79 | $PLUGIN_HOOKS['item_empty']['moreticket'] = ['Ticket' => ['PluginMoreticketTicket', 'emptyTicket']]; 80 | 81 | $PLUGIN_HOOKS['pre_item_update']['moreticket']['Ticket'] = ['PluginMoreticketTicket', 'beforeUpdate']; 82 | $PLUGIN_HOOKS['item_update']['moreticket']['Ticket'] = ['PluginMoreticketTicket', 'afterUpdate']; 83 | 84 | $PLUGIN_HOOKS['pre_item_add']['moreticket']['Ticket'] = ['PluginMoreticketTicket', 'beforeAdd']; 85 | $PLUGIN_HOOKS['item_add']['moreticket']['Ticket'] = ['PluginMoreticketTicket', 'afterAdd']; 86 | 87 | $PLUGIN_HOOKS['item_add']['moreticket']['Document'] = ['PluginMoreticketTicket', 'afterAddDocument']; 88 | $PLUGIN_HOOKS['item_update']['moreticket']['TicketValidation'] = ['PluginMoreticketTicket', 'afterUpdateValidation']; 89 | $PLUGIN_HOOKS['item_add']['moreticket'] ['TicketTask'] = ['PluginMoreticketTicket', 'afterAddTask']; 90 | $PLUGIN_HOOKS['item_add']['moreticket']['ITILFollowup'] = ['PluginMoreticketTicket', 'afterAddFollowupTech']; 91 | } 92 | 93 | $PLUGIN_HOOKS['item_add']['moreticket']['ITILFollowup'] = ['PluginMoreticketNotificationTicket', 'afterAddFollowup']; 94 | 95 | if (Session::haveRight("plugin_moreticket_hide_task_duration", READ)) { 96 | $PLUGIN_HOOKS['add_css']['moreticket'][] = 'css/hide_task_duration.css'; 97 | } 98 | 99 | if (Session::haveRight('plugin_moreticket', READ)) { 100 | Plugin::registerClass('PluginMoreticketWaitingTicket', ['addtabon' => 'Ticket']); 101 | Plugin::registerClass('PluginMoreticketCloseTicket', ['addtabon' => 'Ticket']); 102 | } 103 | 104 | $PLUGIN_HOOKS['post_item_form']['moreticket'] = 'plugin_moreticket_post_item_form'; 105 | } 106 | 107 | // if (isset($_SESSION['glpiactiveprofile']['interface']) 108 | // && $_SESSION['glpiactiveprofile']['interface'] == 'central') { 109 | // $PLUGIN_HOOKS['pre_item_form']['moreticket'] = [PluginMoreticketTicket::class, 'displaySaveButton']; 110 | // } 111 | } 112 | } 113 | 114 | // Get the name and the version of the plugin - Needed 115 | /** 116 | * @return array 117 | */ 118 | function plugin_version_moreticket() { 119 | 120 | return [ 121 | 'name' => __('More ticket', 'moreticket'), 122 | 'version' => PLUGIN_MORETICKET_VERSION, 123 | 'author' => "Infotel", 124 | 'homepage' => "https://github.com/InfotelGLPI/moreticket", 125 | 'license' => 'GPLv2+', 126 | 'requirements' => [ 127 | 'glpi' => [ 128 | 'min' => '10.0', 129 | 'max' => '11.0', 130 | 'dev' => false 131 | ] 132 | ] 133 | ]; 134 | } 135 | -------------------------------------------------------------------------------- /sql/empty-1.0.0.sql: -------------------------------------------------------------------------------- 1 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_profiles`; 2 | CREATE TABLE `glpi_plugin_moreticket_profiles` ( 3 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id du profil 4 | `profiles_id` INT(11) NOT NULL DEFAULT '0' 5 | COMMENT 'RELATION to glpi_profiles (id)', -- lien avec profiles de glpi 6 | `moreticket` CHAR(1) 7 | COLLATE utf8_unicode_ci DEFAULT NULL, 8 | PRIMARY KEY (`id`), 9 | KEY `profiles_id` (`profiles_id`) 10 | ) 11 | ENGINE = MyISAM 12 | DEFAULT CHARSET = utf8 13 | COLLATE = utf8_unicode_ci; 14 | 15 | -- -------------------------------------------------------- 16 | -- 17 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 18 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 19 | -- 20 | 21 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 22 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 23 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 24 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 25 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 26 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 27 | `date_report` DATETIME DEFAULT NULL, -- date de report 28 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 29 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 30 | PRIMARY KEY (`id`), -- index 31 | KEY `date_suspension` (`date_suspension`), 32 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 33 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 34 | ) 35 | ENGINE = MyISAM 36 | DEFAULT CHARSET = utf8 37 | COLLATE = utf8_unicode_ci; 38 | 39 | -- -------------------------------------------------------- 40 | -- 41 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 42 | -- Liste des types d'attente pour un ticket 'en attente' 43 | -- 44 | 45 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 46 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 47 | `id` INT(11) NOT NULL AUTO_INCREMENT, 48 | `name` VARCHAR(255) 49 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 50 | `comment` TEXT COLLATE utf8_unicode_ci, 51 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 52 | `completename` TEXT COLLATE utf8_unicode_ci, 53 | `level` INT(11) NOT NULL DEFAULT '0', 54 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 55 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 56 | `is_helpdeskvisible` TINYINT(1) NOT NULL DEFAULT '1', 57 | PRIMARY KEY (`id`), 58 | KEY `name` (`name`), 59 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`), 60 | KEY `is_helpdeskvisible` (`is_helpdeskvisible`) 61 | ) 62 | ENGINE = MyISAM 63 | DEFAULT CHARSET = utf8 64 | COLLATE = utf8_unicode_ci; 65 | -- -------------------------------------------------------- 66 | -- 67 | -- Structure de la table 'glpi_plugin_moreticket_configs' 68 | -- Plugin configuration 69 | -- 70 | 71 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 72 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 73 | `id` INT(11) NOT NULL AUTO_INCREMENT, 74 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 75 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 76 | PRIMARY KEY (`id`) 77 | ) 78 | ENGINE = MyISAM 79 | DEFAULT CHARSET = utf8 80 | COLLATE = utf8_unicode_ci; 81 | 82 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`) VALUES (1, 1, 1); 83 | -------------------------------------------------------------------------------- /sql/empty-1.1.0.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | 7 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 8 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 9 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 10 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 11 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 12 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 13 | `date_report` DATETIME DEFAULT NULL, -- date de report 14 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 15 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 19 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 20 | ) 21 | ENGINE = MyISAM 22 | DEFAULT CHARSET = utf8 23 | COLLATE = utf8_unicode_ci; 24 | 25 | -- -------------------------------------------------------- 26 | -- 27 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 28 | -- Liste des types d'attente pour un ticket 'en attente' 29 | -- 30 | 31 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 32 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 33 | `id` INT(11) NOT NULL AUTO_INCREMENT, 34 | `name` VARCHAR(255) 35 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 36 | `comment` TEXT COLLATE utf8_unicode_ci, 37 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 38 | `completename` TEXT COLLATE utf8_unicode_ci, 39 | `level` INT(11) NOT NULL DEFAULT '0', 40 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 41 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 42 | `is_helpdeskvisible` TINYINT(1) NOT NULL DEFAULT '1', 43 | PRIMARY KEY (`id`), 44 | KEY `name` (`name`), 45 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`), 46 | KEY `is_helpdeskvisible` (`is_helpdeskvisible`) 47 | ) 48 | ENGINE = MyISAM 49 | DEFAULT CHARSET = utf8 50 | COLLATE = utf8_unicode_ci; 51 | -- -------------------------------------------------------- 52 | -- 53 | -- Structure de la table 'glpi_plugin_moreticket_configs' 54 | -- Plugin configuration 55 | -- 56 | 57 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 58 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 59 | `id` INT(11) NOT NULL AUTO_INCREMENT, 60 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 61 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 62 | PRIMARY KEY (`id`) 63 | ) 64 | ENGINE = MyISAM 65 | DEFAULT CHARSET = utf8 66 | COLLATE = utf8_unicode_ci; 67 | 68 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`) VALUES (1, 1, 1); 69 | -------------------------------------------------------------------------------- /sql/empty-1.1.1.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | 7 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 8 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 9 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 10 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 11 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 12 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 13 | `date_report` DATETIME DEFAULT NULL, -- date de report 14 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 15 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 19 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 20 | ) 21 | ENGINE = MyISAM 22 | DEFAULT CHARSET = utf8 23 | COLLATE = utf8_unicode_ci; 24 | 25 | -- -------------------------------------------------------- 26 | -- 27 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 28 | -- Liste des types d'attente pour un ticket 'en attente' 29 | -- 30 | 31 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 32 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 33 | `id` INT(11) NOT NULL AUTO_INCREMENT, 34 | `name` VARCHAR(255) 35 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 36 | `comment` TEXT COLLATE utf8_unicode_ci, 37 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 38 | `completename` TEXT COLLATE utf8_unicode_ci, 39 | `level` INT(11) NOT NULL DEFAULT '0', 40 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 41 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 42 | `is_helpdeskvisible` TINYINT(1) NOT NULL DEFAULT '1', 43 | PRIMARY KEY (`id`), 44 | KEY `name` (`name`), 45 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`), 46 | KEY `is_helpdeskvisible` (`is_helpdeskvisible`) 47 | ) 48 | ENGINE = MyISAM 49 | DEFAULT CHARSET = utf8 50 | COLLATE = utf8_unicode_ci; 51 | -- -------------------------------------------------------- 52 | -- 53 | -- Structure de la table 'glpi_plugin_moreticket_configs' 54 | -- Plugin configuration 55 | -- 56 | 57 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 58 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 59 | `id` INT(11) NOT NULL AUTO_INCREMENT, 60 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 61 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 62 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 63 | `solution_status` TEXT COLLATE utf8_unicode_ci, 64 | PRIMARY KEY (`id`) 65 | ) 66 | ENGINE = MyISAM 67 | DEFAULT CHARSET = utf8 68 | COLLATE = utf8_unicode_ci; 69 | 70 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `solution_status`) 71 | VALUES (1, 1, 1, 0, '{"5":1}'); 72 | 73 | -- -------------------------------------------------------- 74 | -- 75 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 76 | -- informations pour un ticket 'clos' 77 | -- 78 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 79 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 80 | `id` INT(11) NOT NULL AUTO_INCREMENT, 81 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 82 | `date` VARCHAR(255) 83 | COLLATE utf8_unicode_ci DEFAULT NULL, 84 | `comment` TEXT COLLATE utf8_unicode_ci, 85 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 86 | PRIMARY KEY (`id`) 87 | ) 88 | ENGINE = MyISAM 89 | DEFAULT CHARSET = utf8 90 | COLLATE = utf8_unicode_ci; 91 | -------------------------------------------------------------------------------- /sql/empty-1.1.2.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | 7 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 8 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 9 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 10 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 11 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 12 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 13 | `date_report` DATETIME DEFAULT NULL, -- date de report 14 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 15 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 19 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 20 | ) 21 | ENGINE = MyISAM 22 | DEFAULT CHARSET = utf8 23 | COLLATE = utf8_unicode_ci; 24 | 25 | -- -------------------------------------------------------- 26 | -- 27 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 28 | -- Liste des types d'attente pour un ticket 'en attente' 29 | -- 30 | 31 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 32 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 33 | `id` INT(11) NOT NULL AUTO_INCREMENT, 34 | `name` VARCHAR(255) 35 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 36 | `comment` TEXT COLLATE utf8_unicode_ci, 37 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 38 | `completename` TEXT COLLATE utf8_unicode_ci, 39 | `level` INT(11) NOT NULL DEFAULT '0', 40 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 41 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 42 | PRIMARY KEY (`id`), 43 | KEY `name` (`name`), 44 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 45 | ) 46 | ENGINE = MyISAM 47 | DEFAULT CHARSET = utf8 48 | COLLATE = utf8_unicode_ci; 49 | -- -------------------------------------------------------- 50 | -- 51 | -- Structure de la table 'glpi_plugin_moreticket_configs' 52 | -- Plugin configuration 53 | -- 54 | 55 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 56 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 57 | `id` INT(11) NOT NULL AUTO_INCREMENT, 58 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 59 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 60 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 61 | `solution_status` TEXT COLLATE utf8_unicode_ci, 62 | PRIMARY KEY (`id`) 63 | ) 64 | ENGINE = MyISAM 65 | DEFAULT CHARSET = utf8 66 | COLLATE = utf8_unicode_ci; 67 | 68 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `solution_status`) 69 | VALUES (1, 1, 1, 0, '{"5":1}'); 70 | 71 | -- -------------------------------------------------------- 72 | -- 73 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 74 | -- informations pour un ticket 'clos' 75 | -- 76 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 77 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 78 | `id` INT(11) NOT NULL AUTO_INCREMENT, 79 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 80 | `date` VARCHAR(255) 81 | COLLATE utf8_unicode_ci DEFAULT NULL, 82 | `comment` TEXT COLLATE utf8_unicode_ci, 83 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 84 | PRIMARY KEY (`id`) 85 | ) 86 | ENGINE = MyISAM 87 | DEFAULT CHARSET = utf8 88 | COLLATE = utf8_unicode_ci; 89 | -------------------------------------------------------------------------------- /sql/empty-1.1.3.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | PRIMARY KEY (`id`), -- index 16 | KEY `date_suspension` (`date_suspension`), 17 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 18 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 19 | ) 20 | ENGINE = MyISAM 21 | DEFAULT CHARSET = utf8 22 | COLLATE = utf8_unicode_ci; 23 | 24 | -- -------------------------------------------------------- 25 | -- 26 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 27 | -- Liste des types d'attente pour un ticket 'en attente' 28 | -- 29 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 30 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 31 | `id` INT(11) NOT NULL AUTO_INCREMENT, 32 | `name` VARCHAR(255) 33 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 34 | `comment` TEXT COLLATE utf8_unicode_ci, 35 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 36 | `completename` TEXT COLLATE utf8_unicode_ci, 37 | `level` INT(11) NOT NULL DEFAULT '0', 38 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 39 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 40 | PRIMARY KEY (`id`), 41 | KEY `name` (`name`), 42 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 43 | ) 44 | ENGINE = MyISAM 45 | DEFAULT CHARSET = utf8 46 | COLLATE = utf8_unicode_ci; 47 | 48 | -- -------------------------------------------------------- 49 | -- 50 | -- Structure de la table 'glpi_plugin_moreticket_configs' 51 | -- Plugin configuration 52 | -- 53 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 54 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 55 | `id` INT(11) NOT NULL AUTO_INCREMENT, 56 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 57 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 59 | `solution_status` TEXT COLLATE utf8_unicode_ci, 60 | PRIMARY KEY (`id`) 61 | ) 62 | ENGINE = MyISAM 63 | DEFAULT CHARSET = utf8 64 | COLLATE = utf8_unicode_ci; 65 | 66 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `solution_status`) 67 | VALUES (1, 1, 1, 0, '{"5":1}'); 68 | 69 | -- -------------------------------------------------------- 70 | -- 71 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 72 | -- informations pour un ticket 'clos' 73 | -- 74 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 75 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 76 | `id` INT(11) NOT NULL AUTO_INCREMENT, 77 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 78 | `date` VARCHAR(255) 79 | COLLATE utf8_unicode_ci DEFAULT NULL, 80 | `comment` TEXT COLLATE utf8_unicode_ci, 81 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 82 | `documents_id` INT(11) NOT NULL DEFAULT '0', 83 | PRIMARY KEY (`id`), 84 | KEY (`tickets_id`), 85 | KEY (`documents_id`), 86 | KEY (`requesters_id`) 87 | ) 88 | ENGINE = MyISAM 89 | DEFAULT CHARSET = utf8 90 | COLLATE = utf8_unicode_ci; 91 | -------------------------------------------------------------------------------- /sql/empty-1.2.0.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | PRIMARY KEY (`id`), -- index 16 | KEY `date_suspension` (`date_suspension`), 17 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 18 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 19 | ) 20 | ENGINE = MyISAM 21 | DEFAULT CHARSET = utf8 22 | COLLATE = utf8_unicode_ci; 23 | 24 | -- -------------------------------------------------------- 25 | -- 26 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 27 | -- Liste des types d'attente pour un ticket 'en attente' 28 | -- 29 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 30 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 31 | `id` INT(11) NOT NULL AUTO_INCREMENT, 32 | `name` VARCHAR(255) 33 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 34 | `comment` TEXT COLLATE utf8_unicode_ci, 35 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 36 | `completename` TEXT COLLATE utf8_unicode_ci, 37 | `level` INT(11) NOT NULL DEFAULT '0', 38 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 39 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 40 | PRIMARY KEY (`id`), 41 | KEY `name` (`name`), 42 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 43 | ) 44 | ENGINE = MyISAM 45 | DEFAULT CHARSET = utf8 46 | COLLATE = utf8_unicode_ci; 47 | 48 | -- -------------------------------------------------------- 49 | -- 50 | -- Structure de la table 'glpi_plugin_moreticket_configs' 51 | -- Plugin configuration 52 | -- 53 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 54 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 55 | `id` INT(11) NOT NULL AUTO_INCREMENT, 56 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 57 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 59 | `solution_status` TEXT COLLATE utf8_unicode_ci, 60 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 61 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 62 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 63 | PRIMARY KEY (`id`) 64 | ) 65 | ENGINE = MyISAM 66 | DEFAULT CHARSET = utf8 67 | COLLATE = utf8_unicode_ci; 68 | 69 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`) 70 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}'); 71 | 72 | -- -------------------------------------------------------- 73 | -- 74 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 75 | -- informations pour un ticket 'clos' 76 | -- 77 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 78 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 79 | `id` INT(11) NOT NULL AUTO_INCREMENT, 80 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 81 | `date` VARCHAR(255) 82 | COLLATE utf8_unicode_ci DEFAULT NULL, 83 | `comment` TEXT COLLATE utf8_unicode_ci, 84 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 85 | `documents_id` INT(11) NOT NULL DEFAULT '0', 86 | PRIMARY KEY (`id`), 87 | KEY (`tickets_id`), 88 | KEY (`documents_id`), 89 | KEY (`requesters_id`) 90 | ) 91 | ENGINE = MyISAM 92 | DEFAULT CHARSET = utf8 93 | COLLATE = utf8_unicode_ci; 94 | -------------------------------------------------------------------------------- /sql/empty-1.2.2.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | PRIMARY KEY (`id`), -- index 16 | KEY `date_suspension` (`date_suspension`), 17 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 18 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 19 | ) 20 | ENGINE = MyISAM 21 | DEFAULT CHARSET = utf8 22 | COLLATE = utf8_unicode_ci; 23 | 24 | -- -------------------------------------------------------- 25 | -- 26 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 27 | -- Liste des types d'attente pour un ticket 'en attente' 28 | -- 29 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 30 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 31 | `id` INT(11) NOT NULL AUTO_INCREMENT, 32 | `name` VARCHAR(255) 33 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 34 | `comment` TEXT COLLATE utf8_unicode_ci, 35 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 36 | `completename` TEXT COLLATE utf8_unicode_ci, 37 | `level` INT(11) NOT NULL DEFAULT '0', 38 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 39 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 40 | PRIMARY KEY (`id`), 41 | KEY `name` (`name`), 42 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 43 | ) 44 | ENGINE = MyISAM 45 | DEFAULT CHARSET = utf8 46 | COLLATE = utf8_unicode_ci; 47 | 48 | -- -------------------------------------------------------- 49 | -- 50 | -- Structure de la table 'glpi_plugin_moreticket_configs' 51 | -- Plugin configuration 52 | -- 53 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 54 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 55 | `id` INT(11) NOT NULL AUTO_INCREMENT, 56 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 57 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 59 | `solution_status` TEXT COLLATE utf8_unicode_ci, 60 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 61 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 62 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 63 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 64 | PRIMARY KEY (`id`) 65 | ) 66 | ENGINE = MyISAM 67 | DEFAULT CHARSET = utf8 68 | COLLATE = utf8_unicode_ci; 69 | 70 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`) 71 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0); 72 | 73 | -- -------------------------------------------------------- 74 | -- 75 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 76 | -- informations pour un ticket 'clos' 77 | -- 78 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 79 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 80 | `id` INT(11) NOT NULL AUTO_INCREMENT, 81 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 82 | `date` VARCHAR(255) 83 | COLLATE utf8_unicode_ci DEFAULT NULL, 84 | `comment` TEXT COLLATE utf8_unicode_ci, 85 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 86 | `documents_id` INT(11) NOT NULL DEFAULT '0', 87 | PRIMARY KEY (`id`), 88 | KEY (`tickets_id`), 89 | KEY (`documents_id`), 90 | KEY (`requesters_id`) 91 | ) 92 | ENGINE = MyISAM 93 | DEFAULT CHARSET = utf8 94 | COLLATE = utf8_unicode_ci; 95 | -------------------------------------------------------------------------------- /sql/empty-1.2.3.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | PRIMARY KEY (`id`), -- index 16 | KEY `date_suspension` (`date_suspension`), 17 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 18 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 19 | ) 20 | ENGINE = MyISAM 21 | DEFAULT CHARSET = utf8 22 | COLLATE = utf8_unicode_ci; 23 | 24 | -- -------------------------------------------------------- 25 | -- 26 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 27 | -- Liste des types d'attente pour un ticket 'en attente' 28 | -- 29 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 30 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 31 | `id` INT(11) NOT NULL AUTO_INCREMENT, 32 | `name` VARCHAR(255) 33 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 34 | `comment` TEXT COLLATE utf8_unicode_ci, 35 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 36 | `completename` TEXT COLLATE utf8_unicode_ci, 37 | `level` INT(11) NOT NULL DEFAULT '0', 38 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 39 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 40 | PRIMARY KEY (`id`), 41 | KEY `name` (`name`), 42 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 43 | ) 44 | ENGINE = MyISAM 45 | DEFAULT CHARSET = utf8 46 | COLLATE = utf8_unicode_ci; 47 | 48 | -- -------------------------------------------------------- 49 | -- 50 | -- Structure de la table 'glpi_plugin_moreticket_configs' 51 | -- Plugin configuration 52 | -- 53 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 54 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 55 | `id` INT(11) NOT NULL AUTO_INCREMENT, 56 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 57 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 59 | `solution_status` TEXT COLLATE utf8_unicode_ci, 60 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 61 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 62 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 63 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 64 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 65 | PRIMARY KEY (`id`) 66 | ) 67 | ENGINE = MyISAM 68 | DEFAULT CHARSET = utf8 69 | COLLATE = utf8_unicode_ci; 70 | 71 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`) 72 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1); 73 | 74 | -- -------------------------------------------------------- 75 | -- 76 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 77 | -- informations pour un ticket 'clos' 78 | -- 79 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 80 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 81 | `id` INT(11) NOT NULL AUTO_INCREMENT, 82 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 83 | `date` VARCHAR(255) 84 | COLLATE utf8_unicode_ci DEFAULT NULL, 85 | `comment` TEXT COLLATE utf8_unicode_ci, 86 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 87 | `documents_id` INT(11) NOT NULL DEFAULT '0', 88 | PRIMARY KEY (`id`), 89 | KEY (`tickets_id`), 90 | KEY (`documents_id`), 91 | KEY (`requesters_id`) 92 | ) 93 | ENGINE = MyISAM 94 | DEFAULT CHARSET = utf8 95 | COLLATE = utf8_unicode_ci; 96 | -------------------------------------------------------------------------------- /sql/empty-1.2.4.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | PRIMARY KEY (`id`), -- index 16 | KEY `date_suspension` (`date_suspension`), 17 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 18 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 19 | ) 20 | ENGINE = MyISAM 21 | DEFAULT CHARSET = utf8 22 | COLLATE = utf8_unicode_ci; 23 | 24 | -- -------------------------------------------------------- 25 | -- 26 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 27 | -- Liste des types d'attente pour un ticket 'en attente' 28 | -- 29 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 30 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 31 | `id` INT(11) NOT NULL AUTO_INCREMENT, 32 | `name` VARCHAR(255) 33 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 34 | `comment` TEXT COLLATE utf8_unicode_ci, 35 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 36 | `completename` TEXT COLLATE utf8_unicode_ci, 37 | `level` INT(11) NOT NULL DEFAULT '0', 38 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 39 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 40 | PRIMARY KEY (`id`), 41 | KEY `name` (`name`), 42 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 43 | ) 44 | ENGINE = MyISAM 45 | DEFAULT CHARSET = utf8 46 | COLLATE = utf8_unicode_ci; 47 | 48 | -- -------------------------------------------------------- 49 | -- 50 | -- Structure de la table 'glpi_plugin_moreticket_configs' 51 | -- Plugin configuration 52 | -- 53 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 54 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 55 | `id` INT(11) NOT NULL AUTO_INCREMENT, 56 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 57 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 59 | `solution_status` TEXT COLLATE utf8_unicode_ci, 60 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 61 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 62 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 63 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 64 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 65 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 66 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 67 | PRIMARY KEY (`id`) 68 | ) 69 | ENGINE = MyISAM 70 | DEFAULT CHARSET = utf8 71 | COLLATE = utf8_unicode_ci; 72 | 73 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 74 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 75 | 76 | -- -------------------------------------------------------- 77 | -- 78 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 79 | -- informations pour un ticket 'clos' 80 | -- 81 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 82 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 83 | `id` INT(11) NOT NULL AUTO_INCREMENT, 84 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 85 | `date` VARCHAR(255) 86 | COLLATE utf8_unicode_ci DEFAULT NULL, 87 | `comment` TEXT COLLATE utf8_unicode_ci, 88 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 89 | `documents_id` INT(11) NOT NULL DEFAULT '0', 90 | PRIMARY KEY (`id`), 91 | KEY (`tickets_id`), 92 | KEY (`documents_id`), 93 | KEY (`requesters_id`) 94 | ) 95 | ENGINE = MyISAM 96 | DEFAULT CHARSET = utf8 97 | COLLATE = utf8_unicode_ci; 98 | 99 | -- -------------------------------------------------------- 100 | -- 101 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 102 | -- zone de justification pour l'urgence 103 | -- 104 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 105 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 106 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 107 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 108 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 109 | PRIMARY KEY (`id`), -- index 110 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 111 | ) 112 | ENGINE = MyISAM 113 | DEFAULT CHARSET = utf8 114 | COLLATE = utf8_unicode_ci; 115 | -------------------------------------------------------------------------------- /sql/empty-1.2.5.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 19 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 20 | ) 21 | ENGINE = MyISAM 22 | DEFAULT CHARSET = utf8 23 | COLLATE = utf8_unicode_ci; 24 | 25 | -- -------------------------------------------------------- 26 | -- 27 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 28 | -- Liste des types d'attente pour un ticket 'en attente' 29 | -- 30 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 31 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 32 | `id` INT(11) NOT NULL AUTO_INCREMENT, 33 | `name` VARCHAR(255) 34 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 35 | `comment` TEXT COLLATE utf8_unicode_ci, 36 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 37 | `completename` TEXT COLLATE utf8_unicode_ci, 38 | `level` INT(11) NOT NULL DEFAULT '0', 39 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 40 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 41 | PRIMARY KEY (`id`), 42 | KEY `name` (`name`), 43 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 44 | ) 45 | ENGINE = MyISAM 46 | DEFAULT CHARSET = utf8 47 | COLLATE = utf8_unicode_ci; 48 | 49 | -- -------------------------------------------------------- 50 | -- 51 | -- Structure de la table 'glpi_plugin_moreticket_configs' 52 | -- Plugin configuration 53 | -- 54 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 55 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 56 | `id` INT(11) NOT NULL AUTO_INCREMENT, 57 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 58 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 59 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 60 | `solution_status` TEXT COLLATE utf8_unicode_ci, 61 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 62 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 63 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 64 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 65 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 66 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 67 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 68 | PRIMARY KEY (`id`) 69 | ) 70 | ENGINE = MyISAM 71 | DEFAULT CHARSET = utf8 72 | COLLATE = utf8_unicode_ci; 73 | 74 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 75 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 76 | 77 | -- -------------------------------------------------------- 78 | -- 79 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 80 | -- informations pour un ticket 'clos' 81 | -- 82 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 83 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 84 | `id` INT(11) NOT NULL AUTO_INCREMENT, 85 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 86 | `date` VARCHAR(255) 87 | COLLATE utf8_unicode_ci DEFAULT NULL, 88 | `comment` TEXT COLLATE utf8_unicode_ci, 89 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 90 | `documents_id` INT(11) NOT NULL DEFAULT '0', 91 | PRIMARY KEY (`id`), 92 | KEY (`tickets_id`), 93 | KEY (`documents_id`), 94 | KEY (`requesters_id`) 95 | ) 96 | ENGINE = MyISAM 97 | DEFAULT CHARSET = utf8 98 | COLLATE = utf8_unicode_ci; 99 | 100 | -- -------------------------------------------------------- 101 | -- 102 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 103 | -- zone de justification pour l'urgence 104 | -- 105 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 106 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 107 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 108 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 109 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 110 | PRIMARY KEY (`id`), -- index 111 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 112 | ) 113 | ENGINE = MyISAM 114 | DEFAULT CHARSET = utf8 115 | COLLATE = utf8_unicode_ci; 116 | -------------------------------------------------------------------------------- /sql/empty-1.3.2.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 19 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 20 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` INT(11) NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) 31 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 32 | `comment` TEXT COLLATE utf8_unicode_ci, 33 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 34 | `completename` TEXT COLLATE utf8_unicode_ci, 35 | `level` INT(11) NOT NULL DEFAULT '0', 36 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 37 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 38 | PRIMARY KEY (`id`), 39 | KEY `name` (`name`), 40 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 41 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 42 | 43 | -- -------------------------------------------------------- 44 | -- 45 | -- Structure de la table 'glpi_plugin_moreticket_configs' 46 | -- Plugin configuration 47 | -- 48 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 49 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 50 | `id` INT(11) NOT NULL AUTO_INCREMENT, 51 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 52 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 53 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 54 | `solution_status` TEXT COLLATE utf8_unicode_ci, 55 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 56 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 57 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 59 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 60 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 61 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 62 | `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0', 63 | PRIMARY KEY (`id`) 64 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 65 | 66 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 67 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 68 | 69 | -- -------------------------------------------------------- 70 | -- 71 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 72 | -- informations pour un ticket 'clos' 73 | -- 74 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 75 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 76 | `id` INT(11) NOT NULL AUTO_INCREMENT, 77 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 78 | `date` VARCHAR(255) 79 | COLLATE utf8_unicode_ci DEFAULT NULL, 80 | `comment` TEXT COLLATE utf8_unicode_ci, 81 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 82 | `documents_id` INT(11) NOT NULL DEFAULT '0', 83 | PRIMARY KEY (`id`), 84 | KEY (`tickets_id`), 85 | KEY (`documents_id`), 86 | KEY (`requesters_id`) 87 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 88 | 89 | -- -------------------------------------------------------- 90 | -- 91 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 92 | -- zone de justification pour l'urgence 93 | -- 94 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 95 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 96 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 97 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 98 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 99 | PRIMARY KEY (`id`), -- index 100 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 101 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 102 | -------------------------------------------------------------------------------- /sql/empty-1.3.4.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id), 19 | FOREIGN KEY (`plugin_moreticket_waitingtypes_id`) REFERENCES glpi_plugin_moreticket_waitingtypes (id) 20 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` INT(11) NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) 31 | COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 32 | `comment` TEXT COLLATE utf8_unicode_ci, 33 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 34 | `completename` TEXT COLLATE utf8_unicode_ci, 35 | `level` INT(11) NOT NULL DEFAULT '0', 36 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 37 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 38 | PRIMARY KEY (`id`), 39 | KEY `name` (`name`), 40 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 41 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 42 | 43 | -- -------------------------------------------------------- 44 | -- 45 | -- Structure de la table 'glpi_plugin_moreticket_configs' 46 | -- Plugin configuration 47 | -- 48 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 49 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 50 | `id` INT(11) NOT NULL AUTO_INCREMENT, 51 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 52 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 53 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 54 | `solution_status` TEXT COLLATE utf8_unicode_ci, 55 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 56 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 57 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 58 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 59 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 60 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 61 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 62 | `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0', 63 | `is_mandatory_solution` TINYINT(1) NOT NULL DEFAULT '0', 64 | PRIMARY KEY (`id`) 65 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 66 | 67 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 68 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 69 | 70 | -- -------------------------------------------------------- 71 | -- 72 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 73 | -- informations pour un ticket 'clos' 74 | -- 75 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 76 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 77 | `id` INT(11) NOT NULL AUTO_INCREMENT, 78 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 79 | `date` VARCHAR(255) 80 | COLLATE utf8_unicode_ci DEFAULT NULL, 81 | `comment` TEXT COLLATE utf8_unicode_ci, 82 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 83 | `documents_id` INT(11) NOT NULL DEFAULT '0', 84 | PRIMARY KEY (`id`), 85 | KEY (`tickets_id`), 86 | KEY (`documents_id`), 87 | KEY (`requesters_id`) 88 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 89 | 90 | -- -------------------------------------------------------- 91 | -- 92 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 93 | -- zone de justification pour l'urgence 94 | -- 95 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 96 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 97 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 98 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 99 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 100 | PRIMARY KEY (`id`), -- index 101 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 102 | ) ENGINE = MyISAM DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 103 | -------------------------------------------------------------------------------- /sql/empty-1.4.0.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | KEY (`tickets_id`) , 19 | KEY (`plugin_moreticket_waitingtypes_id`) 20 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` INT(11) NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 31 | `comment` TEXT COLLATE utf8_unicode_ci, 32 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 33 | `completename` TEXT COLLATE utf8_unicode_ci, 34 | `level` INT(11) NOT NULL DEFAULT '0', 35 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 36 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 37 | PRIMARY KEY (`id`), 38 | KEY `name` (`name`), 39 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 40 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 41 | 42 | -- -------------------------------------------------------- 43 | -- 44 | -- Structure de la table 'glpi_plugin_moreticket_configs' 45 | -- Plugin configuration 46 | -- 47 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 48 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 49 | `id` INT(11) NOT NULL AUTO_INCREMENT, 50 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 51 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 52 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 53 | `solution_status` TEXT COLLATE utf8_unicode_ci, 54 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 55 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 56 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 57 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 58 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 59 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 60 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 61 | `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0', 62 | `is_mandatory_solution` TINYINT(1) NOT NULL DEFAULT '0', 63 | PRIMARY KEY (`id`) 64 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 65 | 66 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 67 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 68 | 69 | -- -------------------------------------------------------- 70 | -- 71 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 72 | -- informations pour un ticket 'clos' 73 | -- 74 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 75 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 76 | `id` INT(11) NOT NULL AUTO_INCREMENT, 77 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 78 | `date` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, 79 | `comment` TEXT COLLATE utf8_unicode_ci, 80 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 81 | `documents_id` INT(11) NOT NULL DEFAULT '0', 82 | PRIMARY KEY (`id`), 83 | KEY (`tickets_id`), 84 | KEY (`documents_id`), 85 | KEY (`requesters_id`) 86 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 87 | 88 | -- -------------------------------------------------------- 89 | -- 90 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 91 | -- zone de justification pour l'urgence 92 | -- 93 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 94 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 95 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 96 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 97 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 98 | PRIMARY KEY (`id`), -- index 99 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 100 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 101 | -------------------------------------------------------------------------------- /sql/empty-1.5.1.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | KEY (`tickets_id`) , 19 | KEY (`plugin_moreticket_waitingtypes_id`) 20 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` INT(11) NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 31 | `comment` TEXT COLLATE utf8_unicode_ci, 32 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 33 | `completename` TEXT COLLATE utf8_unicode_ci, 34 | `level` INT(11) NOT NULL DEFAULT '0', 35 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 36 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 37 | PRIMARY KEY (`id`), 38 | KEY `name` (`name`), 39 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 40 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 41 | 42 | -- -------------------------------------------------------- 43 | -- 44 | -- Structure de la table 'glpi_plugin_moreticket_configs' 45 | -- Plugin configuration 46 | -- 47 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 48 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 49 | `id` INT(11) NOT NULL AUTO_INCREMENT, 50 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 51 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 52 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 53 | `solution_status` TEXT COLLATE utf8_unicode_ci, 54 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 55 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 56 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 57 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 58 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 59 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 60 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 61 | `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0', 62 | `is_mandatory_solution` TINYINT(1) NOT NULL DEFAULT '0', 63 | `use_question` TINYINT(1) NOT NULL DEFAULT '0', 64 | PRIMARY KEY (`id`) 65 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 66 | 67 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 68 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 69 | 70 | -- -------------------------------------------------------- 71 | -- 72 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 73 | -- informations pour un ticket 'clos' 74 | -- 75 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 76 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 77 | `id` INT(11) NOT NULL AUTO_INCREMENT, 78 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 79 | `date` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, 80 | `comment` TEXT COLLATE utf8_unicode_ci, 81 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 82 | `documents_id` INT(11) NOT NULL DEFAULT '0', 83 | PRIMARY KEY (`id`), 84 | KEY (`tickets_id`), 85 | KEY (`documents_id`), 86 | KEY (`requesters_id`) 87 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 88 | 89 | -- -------------------------------------------------------- 90 | -- 91 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 92 | -- zone de justification pour l'urgence 93 | -- 94 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 95 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 96 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 97 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 98 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 99 | PRIMARY KEY (`id`), -- index 100 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 101 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 102 | -------------------------------------------------------------------------------- /sql/empty-1.6.2.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | KEY (`tickets_id`) , 19 | KEY (`plugin_moreticket_waitingtypes_id`) 20 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` INT(11) NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 31 | `comment` TEXT COLLATE utf8_unicode_ci, 32 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 33 | `completename` TEXT COLLATE utf8_unicode_ci, 34 | `level` INT(11) NOT NULL DEFAULT '0', 35 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 36 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 37 | PRIMARY KEY (`id`), 38 | KEY `name` (`name`), 39 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 40 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 41 | 42 | -- -------------------------------------------------------- 43 | -- 44 | -- Structure de la table 'glpi_plugin_moreticket_configs' 45 | -- Plugin configuration 46 | -- 47 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 48 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 49 | `id` INT(11) NOT NULL AUTO_INCREMENT, 50 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 51 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 52 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 53 | `solution_status` TEXT COLLATE utf8_unicode_ci, 54 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 55 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 56 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 57 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 58 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 59 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 60 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 61 | `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0', 62 | `is_mandatory_solution` TINYINT(1) NOT NULL DEFAULT '0', 63 | `use_question` TINYINT(1) NOT NULL DEFAULT '0', 64 | `add_save_button` TINYINT(1) NOT NULL DEFAULT '0', 65 | PRIMARY KEY (`id`) 66 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 67 | 68 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 69 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 70 | 71 | -- -------------------------------------------------------- 72 | -- 73 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 74 | -- informations pour un ticket 'clos' 75 | -- 76 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 77 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 78 | `id` INT(11) NOT NULL AUTO_INCREMENT, 79 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 80 | `date` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, 81 | `comment` TEXT COLLATE utf8_unicode_ci, 82 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 83 | `documents_id` INT(11) NOT NULL DEFAULT '0', 84 | PRIMARY KEY (`id`), 85 | KEY (`tickets_id`), 86 | KEY (`documents_id`), 87 | KEY (`requesters_id`) 88 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 89 | 90 | -- -------------------------------------------------------- 91 | -- 92 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 93 | -- zone de justification pour l'urgence 94 | -- 95 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 96 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 97 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 98 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 99 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 100 | PRIMARY KEY (`id`), -- index 101 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 102 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 103 | -------------------------------------------------------------------------------- /sql/empty-1.6.3.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` DATETIME DEFAULT NULL, -- date de suspension 12 | `date_report` DATETIME DEFAULT NULL, -- date de report 13 | `date_end_suspension` DATETIME DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` INT(11) DEFAULT NULL, -- id du type d'attente 15 | `status` int(11) NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | KEY (`tickets_id`) , 19 | KEY (`plugin_moreticket_waitingtypes_id`) 20 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` INT(11) NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, -- nom du type d'attente 31 | `comment` TEXT COLLATE utf8_unicode_ci, 32 | `plugin_moreticket_waitingtypes_id` INT(11) NOT NULL DEFAULT '0', 33 | `completename` TEXT COLLATE utf8_unicode_ci, 34 | `level` INT(11) NOT NULL DEFAULT '0', 35 | `ancestors_cache` LONGTEXT COLLATE utf8_unicode_ci, 36 | `sons_cache` LONGTEXT COLLATE utf8_unicode_ci, 37 | PRIMARY KEY (`id`), 38 | KEY `name` (`name`), 39 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 40 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 41 | 42 | -- -------------------------------------------------------- 43 | -- 44 | -- Structure de la table 'glpi_plugin_moreticket_configs' 45 | -- Plugin configuration 46 | -- 47 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 48 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 49 | `id` INT(11) NOT NULL AUTO_INCREMENT, 50 | `use_waiting` TINYINT(1) NOT NULL DEFAULT '0', 51 | `use_solution` TINYINT(1) NOT NULL DEFAULT '0', 52 | `close_informations` TINYINT(1) NOT NULL DEFAULT '0', 53 | `solution_status` TEXT COLLATE utf8_unicode_ci, 54 | `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 55 | `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 56 | `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 57 | `close_followup` TINYINT(1) NOT NULL DEFAULT '0', 58 | `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0', 59 | `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0', 60 | `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL, 61 | `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0', 62 | `is_mandatory_solution` TINYINT(1) NOT NULL DEFAULT '0', 63 | `use_question` TINYINT(1) NOT NULL DEFAULT '0', 64 | `add_save_button` TINYINT(1) NOT NULL DEFAULT '0', 65 | `day_sending` INT(1) NOT NULL DEFAULT '0', 66 | `day_closing` INT(1) NOT NULL DEFAULT '0', 67 | `update_after_document` TINYINT(1) NOT NULL DEFAULT '0', 68 | `update_after_approval` TINYINT(1) NOT NULL DEFAULT '0', 69 | `followup_text` TEXT, 70 | `closing_with_problem` INT(1) NOT NULL DEFAULT '1', 71 | `add_followup_stop_waiting` INT(1) NOT NULL DEFAULT '0', 72 | PRIMARY KEY (`id`) 73 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 74 | 75 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 76 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 77 | 78 | -- -------------------------------------------------------- 79 | -- 80 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 81 | -- informations pour un ticket 'clos' 82 | -- 83 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 84 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 85 | `id` INT(11) NOT NULL AUTO_INCREMENT, 86 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 87 | `date` VARCHAR(255) COLLATE utf8_unicode_ci DEFAULT NULL, 88 | `comment` TEXT COLLATE utf8_unicode_ci, 89 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 90 | `documents_id` INT(11) NOT NULL DEFAULT '0', 91 | PRIMARY KEY (`id`), 92 | KEY (`tickets_id`), 93 | KEY (`documents_id`), 94 | KEY (`requesters_id`) 95 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 96 | 97 | -- -------------------------------------------------------- 98 | -- 99 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 100 | -- zone de justification pour l'urgence 101 | -- 102 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 103 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 104 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 105 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 106 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 107 | PRIMARY KEY (`id`), -- index 108 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 109 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 110 | 111 | -- -------------------------------------------------------- 112 | -- 113 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 114 | -- zone de justification pour l'urgence 115 | -- 116 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_notificationtickets`; 117 | CREATE TABLE `glpi_plugin_moreticket_notificationtickets` ( 118 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 119 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 120 | `users_id_lastupdater` INT(11) NOT NULL, 121 | PRIMARY KEY (`id`), -- index 122 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 123 | ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE = utf8_unicode_ci; 124 | -------------------------------------------------------------------------------- /sql/empty-1.7.0.sql: -------------------------------------------------------------------------------- 1 | -- -------------------------------------------------------- 2 | -- 3 | -- Structure de la table 'glpi_plugin_moreticket_waitingtickets' 4 | -- Champs supplémentaire à gèrer pour les tickets en attente de GLPI 5 | -- 6 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtickets`; 7 | CREATE TABLE `glpi_plugin_moreticket_waitingtickets` ( 8 | `id` int unsigned NOT NULL AUTO_INCREMENT, -- id ... 9 | `tickets_id` int unsigned NOT NULL, -- id du ticket GLPI 10 | `reason` VARCHAR(255) DEFAULT NULL, -- raison de l'attente 11 | `date_suspension` timestamp NULL DEFAULT NULL, -- date de suspension 12 | `date_report` timestamp NULL DEFAULT NULL, -- date de report 13 | `date_end_suspension` timestamp NULL DEFAULT NULL, -- date de sortie de suspension 14 | `plugin_moreticket_waitingtypes_id` int unsigned DEFAULT NULL, -- id du type d'attente 15 | `status` int unsigned NOT NULL DEFAULT '2', -- ancien statut 16 | PRIMARY KEY (`id`), -- index 17 | KEY `date_suspension` (`date_suspension`), 18 | KEY (`tickets_id`) , 19 | KEY (`plugin_moreticket_waitingtypes_id`) 20 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 21 | 22 | -- -------------------------------------------------------- 23 | -- 24 | -- Structure de la table 'glpi_plugin_moreticket_waitingtypes' 25 | -- Liste des types d'attente pour un ticket 'en attente' 26 | -- 27 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_waitingtypes`; 28 | CREATE TABLE `glpi_plugin_moreticket_waitingtypes` ( 29 | `id` int unsigned NOT NULL AUTO_INCREMENT, 30 | `name` VARCHAR(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, -- nom du type d'attente 31 | `comment` TEXT COLLATE utf8mb4_unicode_ci, 32 | `plugin_moreticket_waitingtypes_id` int unsigned NOT NULL DEFAULT '0', 33 | `completename` TEXT COLLATE utf8mb4_unicode_ci, 34 | `level` int unsigned NOT NULL DEFAULT '0', 35 | `ancestors_cache` LONGTEXT COLLATE utf8mb4_unicode_ci, 36 | `sons_cache` LONGTEXT COLLATE utf8mb4_unicode_ci, 37 | PRIMARY KEY (`id`), 38 | KEY `name` (`name`), 39 | KEY `unicity` (`plugin_moreticket_waitingtypes_id`, `name`) 40 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 41 | 42 | -- -------------------------------------------------------- 43 | -- 44 | -- Structure de la table 'glpi_plugin_moreticket_configs' 45 | -- Plugin configuration 46 | -- 47 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_configs`; 48 | CREATE TABLE `glpi_plugin_moreticket_configs` ( 49 | `id` int unsigned NOT NULL AUTO_INCREMENT, 50 | `use_waiting` tinyint NOT NULL DEFAULT '0', 51 | `use_solution` tinyint NOT NULL DEFAULT '0', 52 | `close_informations` tinyint NOT NULL DEFAULT '0', 53 | `solution_status` TEXT COLLATE utf8mb4_unicode_ci, 54 | `waitingtype_mandatory` tinyint NOT NULL DEFAULT '0', 55 | `date_report_mandatory` tinyint NOT NULL DEFAULT '0', 56 | `solutiontype_mandatory` tinyint NOT NULL DEFAULT '0', 57 | `close_followup` tinyint NOT NULL DEFAULT '0', 58 | `waitingreason_mandatory` tinyint NOT NULL DEFAULT '0', 59 | `urgency_justification` tinyint NOT NULL DEFAULT '0', 60 | `urgency_ids` TEXT COLLATE utf8mb4_unicode_ci DEFAULT NULL, 61 | `use_duration_solution` tinyint NOT NULL DEFAULT '0', 62 | `is_mandatory_solution` tinyint NOT NULL DEFAULT '0', 63 | `use_question` tinyint NOT NULL DEFAULT '0', 64 | `add_save_button` tinyint NOT NULL DEFAULT '0', 65 | `day_sending` INT(1) NOT NULL DEFAULT '0', 66 | `day_closing` INT(1) NOT NULL DEFAULT '0', 67 | `update_after_document` tinyint NOT NULL DEFAULT '0', 68 | `update_after_approval` tinyint NOT NULL DEFAULT '0', 69 | `followup_text` TEXT, 70 | `closing_with_problem` INT(1) NOT NULL DEFAULT '1', 71 | `add_followup_stop_waiting` INT(1) NOT NULL DEFAULT '0', 72 | PRIMARY KEY (`id`) 73 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 74 | 75 | INSERT INTO `glpi_plugin_moreticket_configs` (`id`, `use_waiting`, `use_solution`, `close_informations`, `date_report_mandatory`, `waitingtype_mandatory`, `solutiontype_mandatory`, `solution_status`, `close_followup`, `waitingreason_mandatory`, `urgency_justification`) 76 | VALUES (1, 1, 1, 1, 1, 1, 1, '{"5":1}', 0, 1, 0); 77 | 78 | -- -------------------------------------------------------- 79 | -- 80 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 81 | -- informations pour un ticket 'clos' 82 | -- 83 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 84 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 85 | `id` int unsigned NOT NULL AUTO_INCREMENT, 86 | `tickets_id` int unsigned NOT NULL, -- id du ticket GLPI 87 | `date` VARCHAR(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, 88 | `comment` TEXT COLLATE utf8mb4_unicode_ci, 89 | `requesters_id` int unsigned NOT NULL DEFAULT '0', 90 | `documents_id` int unsigned NOT NULL DEFAULT '0', 91 | PRIMARY KEY (`id`), 92 | KEY (`tickets_id`), 93 | KEY (`documents_id`), 94 | KEY (`requesters_id`) 95 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 96 | 97 | -- -------------------------------------------------------- 98 | -- 99 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 100 | -- zone de justification pour l'urgence 101 | -- 102 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_urgencytickets`; 103 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 104 | `id` int unsigned NOT NULL AUTO_INCREMENT, -- id ... 105 | `tickets_id` int unsigned NOT NULL, -- id du ticket GLPI 106 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 107 | PRIMARY KEY (`id`) 108 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 109 | 110 | -- -------------------------------------------------------- 111 | -- 112 | -- Structure de la table 'glpi_plugin_moreticket_urgencytickets' 113 | -- zone de justification pour l'urgence 114 | -- 115 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_notificationtickets`; 116 | CREATE TABLE `glpi_plugin_moreticket_notificationtickets` ( 117 | `id` int unsigned NOT NULL AUTO_INCREMENT, -- id ... 118 | `tickets_id` int unsigned NOT NULL, -- id du ticket GLPI 119 | `users_id_lastupdater` int unsigned NOT NULL, 120 | PRIMARY KEY (`id`) 121 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 122 | -------------------------------------------------------------------------------- /sql/update-1.1.1.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs 2 | ADD `solution_status` TEXT COLLATE utf8_unicode_ci; 3 | ALTER TABLE glpi_plugin_moreticket_configs 4 | ADD `close_informations` TINYINT NOT NULL DEFAULT '0'; 5 | 6 | -- -------------------------------------------------------- 7 | -- 8 | -- Structure de la table 'glpi_plugin_moreticket_closetickets' 9 | -- informations pour un ticket 'clos' 10 | -- 11 | DROP TABLE IF EXISTS `glpi_plugin_moreticket_closetickets`; 12 | CREATE TABLE `glpi_plugin_moreticket_closetickets` ( 13 | `id` INT(11) NOT NULL AUTO_INCREMENT, 14 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 15 | `date` VARCHAR(255) 16 | COLLATE utf8_unicode_ci DEFAULT NULL, 17 | `comment` TEXT COLLATE utf8_unicode_ci, 18 | `requesters_id` INT(11) NOT NULL DEFAULT '0', 19 | PRIMARY KEY (`id`), 20 | KEY (`tickets_id`) 21 | ) 22 | ENGINE = MyISAM 23 | DEFAULT CHARSET = utf8 24 | COLLATE = utf8_unicode_ci; -------------------------------------------------------------------------------- /sql/update-1.1.2.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_waitingtypes 2 | DROP COLUMN is_helpdeskvisible; 3 | -------------------------------------------------------------------------------- /sql/update-1.1.3.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_closetickets 2 | ADD `documents_id` INT(11) NOT NULL DEFAULT '0'; 3 | -------------------------------------------------------------------------------- /sql/update-1.2.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs 2 | ADD `date_report_mandatory` TINYINT(1) NOT NULL DEFAULT '0'; 3 | ALTER TABLE glpi_plugin_moreticket_configs 4 | ADD `waitingtype_mandatory` TINYINT(1) NOT NULL DEFAULT '0'; 5 | ALTER TABLE glpi_plugin_moreticket_configs 6 | ADD `solutiontype_mandatory` TINYINT(1) NOT NULL DEFAULT '0'; 7 | -------------------------------------------------------------------------------- /sql/update-1.2.2.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs 2 | ADD `close_followup` TINYINT(1) NOT NULL DEFAULT '0'; 3 | -------------------------------------------------------------------------------- /sql/update-1.2.3.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs 2 | ADD `waitingreason_mandatory` TINYINT(1) NOT NULL DEFAULT '0'; 3 | -------------------------------------------------------------------------------- /sql/update-1.2.4.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs 2 | ADD `urgency_justification` TINYINT(1) NOT NULL DEFAULT '0'; 3 | ALTER TABLE glpi_plugin_moreticket_configs 4 | ADD `urgency_ids` TEXT COLLATE utf8_unicode_ci DEFAULT NULL; 5 | 6 | CREATE TABLE `glpi_plugin_moreticket_urgencytickets` ( 7 | `id` INT(11) NOT NULL AUTO_INCREMENT, -- id ... 8 | `tickets_id` INT(11) NOT NULL, -- id du ticket GLPI 9 | `justification` VARCHAR(255) DEFAULT NULL, -- justification 10 | PRIMARY KEY (`id`), -- index 11 | FOREIGN KEY (`tickets_id`) REFERENCES glpi_tickets (id) 12 | ) 13 | ENGINE = MyISAM 14 | DEFAULT CHARSET = utf8 15 | COLLATE = utf8_unicode_ci; 16 | -------------------------------------------------------------------------------- /sql/update-1.2.5.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_waitingtickets 2 | ADD `status` int(11) NOT NULL DEFAULT '2'; -------------------------------------------------------------------------------- /sql/update-1.3.2.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs ADD `use_duration_solution` TINYINT(1) NOT NULL DEFAULT '0'; -------------------------------------------------------------------------------- /sql/update-1.3.4.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs ADD `is_mandatory_solution` TINYINT(1) NOT NULL DEFAULT '0'; -------------------------------------------------------------------------------- /sql/update-1.5.1.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs ADD `use_question` TINYINT(1) NOT NULL DEFAULT '0'; -------------------------------------------------------------------------------- /sql/update-1.6.2.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE glpi_plugin_moreticket_configs ADD `add_save_button` TINYINT(1) NOT NULL DEFAULT '0'; -------------------------------------------------------------------------------- /sql/update-1.6.3.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE `glpi_plugin_moreticket_notificationtickets` ( 2 | `id` int unsigned NOT NULL AUTO_INCREMENT, -- id ... 3 | `tickets_id` int unsigned NOT NULL, -- id du ticket GLPI 4 | `users_id_lastupdater` int unsigned NOT NULL, 5 | PRIMARY KEY (`id`), -- index 6 | KEY (`tickets_id`) 7 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC; 8 | 9 | 10 | ALTER TABLE glpi_plugin_moreticket_configs ADD `day_sending` int unsigned NOT NULL DEFAULT '0'; 11 | ALTER TABLE glpi_plugin_moreticket_configs ADD `day_closing` int unsigned NOT NULL DEFAULT '0'; 12 | ALTER TABLE glpi_plugin_moreticket_configs ADD `update_after_document` int unsigned NOT NULL DEFAULT '0'; 13 | ALTER TABLE glpi_plugin_moreticket_configs ADD `update_after_approval` int unsigned NOT NULL DEFAULT '0'; 14 | ALTER TABLE glpi_plugin_moreticket_configs ADD `followup_text` TEXT; 15 | ALTER TABLE glpi_plugin_moreticket_configs ADD `closing_with_problem` int unsigned NOT NULL DEFAULT '1'; 16 | ALTER TABLE glpi_plugin_moreticket_configs ADD `add_followup_stop_waiting` int unsigned NOT NULL DEFAULT '0'; 17 | 18 | -------------------------------------------------------------------------------- /sql/update-1.7.0.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `glpi_plugin_moreticket_notificationtickets` DROP FOREIGN KEY glpi_plugin_moreticket_notificationtickets_ibfk_1; 2 | ALTER TABLE `glpi_plugin_moreticket_urgencytickets` DROP FOREIGN KEY glpi_plugin_moreticket_urgencytickets_ibfk_1; 3 | -------------------------------------------------------------------------------- /sql/update-1.7.5.sql: -------------------------------------------------------------------------------- 1 | ALTER TABLE `glpi_plugin_moreticket_configs` ADD `update_after_tech_add_task` tinyint NOT NULL DEFAULT '0'; 2 | ALTER TABLE `glpi_plugin_moreticket_configs` ADD `update_after_tech_add_followup` tinyint NOT NULL DEFAULT '0'; 3 | ALTER TABLE `glpi_plugin_moreticket_configs` ADD `waiting_by_default_followup` tinyint NOT NULL DEFAULT '0'; 4 | ALTER TABLE `glpi_plugin_moreticket_configs` ADD `waiting_by_default_task` tinyint NOT NULL DEFAULT '0'; 5 | --------------------------------------------------------------------------------