diff --git a/dev/initdemo/mysqldump_dolibarr_9.0.0.sql b/dev/initdemo/mysqldump_dolibarr_9.0.0.sql
index fc2be863791..c2fc6e39c9f 100644
--- a/dev/initdemo/mysqldump_dolibarr_9.0.0.sql
+++ b/dev/initdemo/mysqldump_dolibarr_9.0.0.sql
@@ -4242,100 +4242,6 @@ INSERT INTO `llx_c_ticket_type` VALUES (1,1,'COM','10','Commercial question',1,1
/*!40000 ALTER TABLE `llx_c_ticket_type` ENABLE KEYS */;
UNLOCK TABLES;
---
--- Table structure for table `llx_c_ticketsup_category`
---
-
-DROP TABLE IF EXISTS `llx_c_ticketsup_category`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_c_ticketsup_category` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `code` varchar(32) NOT NULL,
- `pos` varchar(32) NOT NULL,
- `label` varchar(128) NOT NULL,
- `active` int(11) DEFAULT '1',
- `use_default` int(11) DEFAULT '1',
- `description` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`rowid`),
- UNIQUE KEY `uk_code` (`code`,`entity`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_c_ticketsup_category`
---
-
-LOCK TABLES `llx_c_ticketsup_category` WRITE;
-/*!40000 ALTER TABLE `llx_c_ticketsup_category` DISABLE KEYS */;
-INSERT INTO `llx_c_ticketsup_category` VALUES (1,1,'OTHER','10','Other',1,1,NULL);
-/*!40000 ALTER TABLE `llx_c_ticketsup_category` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `llx_c_ticketsup_severity`
---
-
-DROP TABLE IF EXISTS `llx_c_ticketsup_severity`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_c_ticketsup_severity` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `code` varchar(32) NOT NULL,
- `pos` varchar(32) NOT NULL,
- `label` varchar(128) NOT NULL,
- `color` varchar(10) NOT NULL,
- `active` int(11) DEFAULT '1',
- `use_default` int(11) DEFAULT '1',
- `description` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`rowid`),
- UNIQUE KEY `uk_code` (`code`,`entity`)
-) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_c_ticketsup_severity`
---
-
-LOCK TABLES `llx_c_ticketsup_severity` WRITE;
-/*!40000 ALTER TABLE `llx_c_ticketsup_severity` DISABLE KEYS */;
-INSERT INTO `llx_c_ticketsup_severity` VALUES (1,1,'LOW','10','Low','',1,0,NULL),(2,1,'NORMAL','20','Normal','',1,1,NULL),(3,1,'HIGH','30','High','',1,0,NULL),(4,1,'BLOCKING','40','Critical / blocking','',1,0,NULL);
-/*!40000 ALTER TABLE `llx_c_ticketsup_severity` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `llx_c_ticketsup_type`
---
-
-DROP TABLE IF EXISTS `llx_c_ticketsup_type`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_c_ticketsup_type` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `code` varchar(32) NOT NULL,
- `pos` varchar(32) NOT NULL,
- `label` varchar(128) NOT NULL,
- `active` int(11) DEFAULT '1',
- `use_default` int(11) DEFAULT '1',
- `description` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`rowid`),
- UNIQUE KEY `uk_code` (`code`,`entity`)
-) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_c_ticketsup_type`
---
-
-LOCK TABLES `llx_c_ticketsup_type` WRITE;
-/*!40000 ALTER TABLE `llx_c_ticketsup_type` DISABLE KEYS */;
-INSERT INTO `llx_c_ticketsup_type` VALUES (1,1,'COM','10','Commercial question',1,1,NULL),(2,1,'ISSUE','20','Issue or problem',1,0,NULL),(3,1,'REQUEST','25','Change or enhancement request',1,0,NULL),(4,1,'PROJECT','30','Project',1,0,NULL),(5,1,'OTHER','40','Other',1,0,NULL);
-/*!40000 ALTER TABLE `llx_c_ticketsup_type` ENABLE KEYS */;
-UNLOCK TABLES;
-
--
-- Table structure for table `llx_c_tva`
--
@@ -13005,36 +12911,6 @@ INSERT INTO `llx_ticket_extrafields` VALUES (1,'2018-06-04 19:36:42',1,NULL,NULL
/*!40000 ALTER TABLE `llx_ticket_extrafields` ENABLE KEYS */;
UNLOCK TABLES;
---
--- Table structure for table `llx_ticket_logs`
---
-
-DROP TABLE IF EXISTS `llx_ticket_logs`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_ticket_logs` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `fk_track_id` varchar(128) DEFAULT NULL,
- `fk_user_create` int(11) DEFAULT NULL,
- `datec` datetime DEFAULT NULL,
- `message` text,
- PRIMARY KEY (`rowid`),
- KEY `fk_ticket_logs_fk_track_id` (`fk_track_id`),
- CONSTRAINT `fk_ticket_logs_fk_track_id` FOREIGN KEY (`fk_track_id`) REFERENCES `llx_ticket` (`track_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_ticket_logs`
---
-
-LOCK TABLES `llx_ticket_logs` WRITE;
-/*!40000 ALTER TABLE `llx_ticket_logs` DISABLE KEYS */;
-INSERT INTO `llx_ticket_logs` VALUES (1,1,'d42iybp7p6d1cvqi',12,'2018-10-01 03:20:18','Ticket read by Alice Adminson');
-/*!40000 ALTER TABLE `llx_ticket_logs` ENABLE KEYS */;
-UNLOCK TABLES;
-
--
-- Table structure for table `llx_ticket_msg`
--
@@ -13066,143 +12942,6 @@ INSERT INTO `llx_ticket_msg` VALUES (1,1,'d42iybp7p6d1cvqi',12,'2018-10-01 03:18
/*!40000 ALTER TABLE `llx_ticket_msg` ENABLE KEYS */;
UNLOCK TABLES;
---
--- Table structure for table `llx_ticketsup`
---
-
-DROP TABLE IF EXISTS `llx_ticketsup`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_ticketsup` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `ref` varchar(128) NOT NULL,
- `track_id` varchar(128) NOT NULL,
- `fk_soc` int(11) DEFAULT '0',
- `fk_project` int(11) DEFAULT '0',
- `origin_email` varchar(128) DEFAULT NULL,
- `fk_user_create` int(11) DEFAULT NULL,
- `fk_user_assign` int(11) DEFAULT NULL,
- `subject` varchar(255) DEFAULT NULL,
- `message` text,
- `fk_statut` int(11) DEFAULT NULL,
- `resolution` int(11) DEFAULT NULL,
- `progress` varchar(100) DEFAULT NULL,
- `timing` varchar(20) DEFAULT NULL,
- `type_code` varchar(32) DEFAULT NULL,
- `category_code` varchar(32) DEFAULT NULL,
- `severity_code` varchar(32) DEFAULT NULL,
- `datec` datetime DEFAULT NULL,
- `date_read` datetime DEFAULT NULL,
- `date_close` datetime DEFAULT NULL,
- `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `notify_tiers_at_create` int(11) DEFAULT NULL,
- PRIMARY KEY (`rowid`),
- UNIQUE KEY `uk_ticketsup_track_id` (`track_id`),
- KEY `id_ticketsup_track_id` (`track_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_ticketsup`
---
-
-LOCK TABLES `llx_ticketsup` WRITE;
-/*!40000 ALTER TABLE `llx_ticketsup` DISABLE KEYS */;
-INSERT INTO `llx_ticketsup` VALUES (16,1,'TS1803-0001','bmhki5neaa7bszvy',64,12,NULL,12,11,'hfghfgbvcbcv','hgfhfghf
\r\ngdgdgdhghfghf',3,NULL,'100','NORMAL','COM','OTHER','NORMAL','2018-03-13 15:19:47','2018-03-18 21:55:12','2018-04-10 18:00:15','2018-05-01 10:32:20',1),(17,1,'TS1803-0002','ltvd8zthmu5b7v42',148,NULL,NULL,12,NULL,'hfghf','jghjhg',6,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-03-16 13:30:33','2018-03-18 22:00:39',NULL,'2018-03-18 18:27:03',1),(20,1,'TS1803-0005','o9997psaapahwrxi',NULL,NULL,NULL,12,NULL,'khjkhj','mmmmm',1,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-03-18 22:55:56','2018-03-19 14:57:36',NULL,'2018-03-19 10:57:36',0),(21,1,'TS1803-0006','hh2ludsvj32lp8sq',NULL,NULL,NULL,12,NULL,'gdfg','gdfgfd',0,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-03-18 22:56:20',NULL,NULL,'2018-03-18 18:56:20',1),(22,1,'TS1803-0007','4e8iy89hes9a5w8d',NULL,NULL,NULL,12,NULL,'ffffffff','fsdf',0,NULL,'0','NORMAL','COM','OTHER','NORMAL','2018-03-18 23:00:41',NULL,NULL,'2018-04-12 19:41:47',1),(23,1,'TS1804-0008','jbm8vxsqw19817fm',79,NULL,'aaa@aaa.com',NULL,NULL,'ssss','mmm',0,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-04-12 23:20:40',NULL,NULL,'2018-04-12 21:20:40',1),(24,1,'TS1804-0009','q32naisayppjgr5b',NULL,NULL,'f@f.com',NULL,NULL,'sss','mmm',0,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-04-12 23:23:34',NULL,NULL,'2018-04-12 21:23:34',1),(25,1,'TS1804-0010','dst5xryjb55jjxs6',NULL,NULL,'f@f.com',NULL,NULL,'sss','mmm',0,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-04-12 23:31:01',NULL,NULL,'2018-04-12 21:31:01',1),(26,1,'TS1804-0011','qh9ar34ut2shp5rq',151,NULL,'testldr6@dolicloud.com',NULL,NULL,'ppppp','gdgdgdfg',0,NULL,'0',NULL,'COM','OTHER','NORMAL','2018-04-19 15:05:23',NULL,NULL,'2018-04-19 13:05:23',1);
-/*!40000 ALTER TABLE `llx_ticketsup` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `llx_ticketsup_extrafields`
---
-
-DROP TABLE IF EXISTS `llx_ticketsup_extrafields`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_ticketsup_extrafields` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `tms` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
- `fk_object` int(11) NOT NULL,
- `import_key` varchar(14) DEFAULT NULL,
- `aaa` varchar(255) DEFAULT NULL,
- `listeonly` varchar(255) DEFAULT NULL,
- `bbb` varchar(255) DEFAULT NULL,
- PRIMARY KEY (`rowid`)
-) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_ticketsup_extrafields`
---
-
-LOCK TABLES `llx_ticketsup_extrafields` WRITE;
-/*!40000 ALTER TABLE `llx_ticketsup_extrafields` DISABLE KEYS */;
-INSERT INTO `llx_ticketsup_extrafields` VALUES (15,'2018-04-12 21:20:40',23,NULL,'aaaa',NULL,NULL),(16,'2018-04-12 21:23:34',24,NULL,'aaa',NULL,NULL),(17,'2018-04-12 21:31:01',25,NULL,'aaa',NULL,NULL),(20,'2018-04-13 10:42:15',22,NULL,'fffppgggffooppmmpp',NULL,NULL),(26,'2018-04-19 13:05:23',26,NULL,'aaa',NULL,NULL),(56,'2018-04-30 08:32:50',16,NULL,'ljklj',NULL,NULL);
-/*!40000 ALTER TABLE `llx_ticketsup_extrafields` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `llx_ticketsup_logs`
---
-
-DROP TABLE IF EXISTS `llx_ticketsup_logs`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_ticketsup_logs` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `fk_track_id` varchar(128) DEFAULT NULL,
- `fk_user_create` int(11) DEFAULT NULL,
- `datec` datetime DEFAULT NULL,
- `message` text,
- PRIMARY KEY (`rowid`),
- KEY `fk_ticketsup_logs_fk_track_id` (`fk_track_id`),
- CONSTRAINT `fk_ticketsup_logs_fk_track_id` FOREIGN KEY (`fk_track_id`) REFERENCES `llx_ticketsup` (`track_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=82 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_ticketsup_logs`
---
-
-LOCK TABLES `llx_ticketsup_logs` WRITE;
-/*!40000 ALTER TABLE `llx_ticketsup_logs` DISABLE KEYS */;
-INSERT INTO `llx_ticketsup_logs` VALUES (14,1,'bmhki5neaa7bszvy',12,'2018-03-16 13:31:15','Change classification : from Other to Other'),(15,1,'bmhki5neaa7bszvy',12,'2018-03-16 13:31:22','Change classification : from Commercial question to Issue or problem'),(16,1,'bmhki5neaa7bszvy',12,'2018-03-18 14:59:27','Ticket assigned to David Doe'),(17,1,'bmhki5neaa7bszvy',12,'2018-03-18 14:59:36','Ticket assigned to hgfhfg hgfh'),(18,1,'bmhki5neaa7bszvy',12,'2018-03-18 14:59:47','Ticket assigned to Sam Scientol'),(19,1,'bmhki5neaa7bszvy',12,'2018-03-18 15:01:20','Ticket assigned to Zack Zeceo'),(20,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:30:49','Ticket read by Alice Adminson'),(22,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:37:42','Status changed : Read to Not read'),(23,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:37:55','Ticket read by Alice Adminson'),(24,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:38:03','Status changed : Read to Not read'),(25,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:38:25','Ticket read by Alice Adminson'),(26,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:38:29','Status changed : Read to Not read'),(27,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:38:45','Ticket read by Alice Adminson'),(28,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:43:30','Status changed : Read to Not read'),(29,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:44:19','Status changed : Not read to Read'),(30,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:44:21','Status changed : Read to Not read'),(31,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:44:25','Ticket read by Alice Adminson'),(32,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:44:29','Status changed : Read to Not read'),(33,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:44:31','Status changed : Not read to Read'),(34,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:44:40','Status changed : Read to Not read'),(35,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:48:06','Ticket read by Alice Adminson'),(36,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:48:10','Status changed : Read to Not read'),(37,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:55:06','Ticket read by Alice Adminson'),(38,1,'bmhki5neaa7bszvy',12,'2018-03-18 21:55:12','Ticket read by Alice Adminson'),(39,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:00:39','Ticket read by Alice Adminson'),(40,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:25:01','Status changed : Answered to Assigned'),(41,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:25:08','Status changed : Assigned to Answered'),(42,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:25:16','Status changed : Answered to In progress'),(43,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:27:03','Status changed : In progress to Waiting'),(44,1,'o9997psaapahwrxi',12,'2018-03-19 14:57:35','Ticket read by Alice Adminson'),(45,1,'o9997psaapahwrxi',12,'2018-03-19 14:57:36','Ticket read by Alice Adminson'),(46,1,'bmhki5neaa7bszvy',12,'2018-04-10 17:58:28','Status changed : Lu to En cours'),(47,1,'bmhki5neaa7bszvy',12,'2018-04-10 17:58:44','Ticket clôt par Alice Adminson'),(48,1,'bmhki5neaa7bszvy',12,'2018-04-10 18:00:15','Ticket clôt par Alice Adminson'),(49,1,'bmhki5neaa7bszvy',12,'2018-04-13 12:11:32','Ticket ré-ouvert'),(50,1,'bmhki5neaa7bszvy',12,'2018-04-15 11:45:53','Status changed : assigné to Unread'),(51,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:01:24','Change classification : from to '),(52,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:01:26','Change classification : from to '),(53,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:02:03','Change classification : from to '),(54,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:02:27','Change classification : from to '),(55,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:09:03','Change classification : from to '),(56,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:09:34','Change classification : from to '),(57,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:15:04','Change classification : from to '),(58,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:15:54','Change classification : from to '),(59,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:17:47','Change classification : from to '),(60,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:18:04','Change classification : from to '),(61,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:18:28','Change classification : from to '),(62,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:18:39','Change classification : from to '),(63,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:19:00','Change classification : from to '),(64,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:19:06','Change classification : from to '),(65,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:19:09','Change classification : from to '),(66,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:19:13','Change classification : from to '),(67,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:24:52','Change classification : from to '),(68,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:24:58','Change classification : from to '),(69,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:26:41','Change classification : from to '),(70,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:27:03','Change classification : from to '),(71,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:27:06','Change classification : from to '),(72,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:27:30','Initial message modified \n hgfhfghf\n+ gdgdgd\n'),(73,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:28:13','Initial message modified \n hgfhfghf\n gdgdgd\n'),(74,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:28:28','Initial message modified \n hgfhfghf\n gdgdgd\n'),(75,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:28:47','Initial message modified \n hgfhfghf\n gdgdgd\n'),(76,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:28:55','Initial message modified \n hgfhfghf\n- gdgdgd\n+ gdgdgdhghfghf\n'),(77,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:28:58','Change classification : from to '),(78,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:29:55','Change classification : from to '),(79,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:32:42','Change classification : from to '),(80,1,'bmhki5neaa7bszvy',12,'2018-04-30 10:32:50','Change classification : from to '),(81,1,'bmhki5neaa7bszvy',12,'2018-05-01 12:32:20','Status changed : Unread to Answered');
-/*!40000 ALTER TABLE `llx_ticketsup_logs` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
--- Table structure for table `llx_ticketsup_msg`
---
-
-DROP TABLE IF EXISTS `llx_ticketsup_msg`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `llx_ticketsup_msg` (
- `rowid` int(11) NOT NULL AUTO_INCREMENT,
- `entity` int(11) DEFAULT '1',
- `fk_track_id` varchar(128) DEFAULT NULL,
- `fk_user_action` int(11) DEFAULT NULL,
- `datec` datetime DEFAULT NULL,
- `message` text,
- `private` int(11) DEFAULT '0',
- PRIMARY KEY (`rowid`),
- KEY `fk_ticketsup_msg_fk_track_id` (`fk_track_id`),
- CONSTRAINT `fk_ticketsup_msg_fk_track_id` FOREIGN KEY (`fk_track_id`) REFERENCES `llx_ticketsup` (`track_id`)
-) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `llx_ticketsup_msg`
---
-
-LOCK TABLES `llx_ticketsup_msg` WRITE;
-/*!40000 ALTER TABLE `llx_ticketsup_msg` DISABLE KEYS */;
-INSERT INTO `llx_ticketsup_msg` VALUES (1,1,'bmhki5neaa7bszvy',12,'2018-03-16 13:30:57','gdfd',0),(2,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:24:18','fdsfds',0),(3,1,'ltvd8zthmu5b7v42',12,'2018-03-18 22:24:39','hfghfg',0);
-/*!40000 ALTER TABLE `llx_ticketsup_msg` ENABLE KEYS */;
-UNLOCK TABLES;
-
--
-- Table structure for table `llx_tva`
--
diff --git a/dev/initdemo/savedemo.sh b/dev/initdemo/savedemo.sh
index e94169ff155..1e051b4cded 100755
--- a/dev/initdemo/savedemo.sh
+++ b/dev/initdemo/savedemo.sh
@@ -191,6 +191,9 @@ export list="
--ignore-table=$base.llx_c_dolicloud_plans
--ignore-table=$base.llx_c_pays
--ignore-table=$base.llx_c_source
+ --ignore-table=$base.llx_c_ticketsup_category
+ --ignore-table=$base.llx_c_ticketsup_severity
+ --ignore-table=$base.llx_c_ticketsup_type
--ignore-table=$base.llx_cabinetmed_c_banques
--ignore-table=$base.llx_cabinetmed_c_ccam
--ignore-table=$base.llx_cabinetmed_c_examconclusion
@@ -248,6 +251,8 @@ export list="
--ignore-table=$base.llx_residence
--ignore-table=$base.llx_residence_building
--ignore-table=$base.llx_residence_building_links
+ --ignore-table=$base.llx_societe_rib2
+ --ignore-table=$base.llx_ticketsup
--ignore-table=$base.llx_ultimatepdf
--ignore-table=$base.llx_update_modules
--ignore-table=$base.llx_ventilation_achat
diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php
index accdedc0141..7eb1c78c7d4 100644
--- a/htdocs/adherents/card.php
+++ b/htdocs/adherents/card.php
@@ -970,14 +970,14 @@ else
// Address
print '
| '.$langs->trans("Address").' | ';
- print '';
+ print '';
print ' |
';
// Zip / Town
print '| '.$langs->trans("Zip").' / '.$langs->trans("Town").' | ';
- print $formcompany->select_ziptown((GETPOST('zipcode','alpha')?GETPOST('zipcode','alpha'):$object->zip),'zipcode',array('town','selectcountry_id','state_id'),6);
+ print $formcompany->select_ziptown((GETPOST('zipcode','alphanohtml')?GETPOST('zipcode','alphanohtml'):$object->zip),'zipcode',array('town','selectcountry_id','state_id'),6);
print ' ';
- print $formcompany->select_ziptown((GETPOST('town','alpha')?GETPOST('town','alpha'):$object->town),'town',array('zipcode','selectcountry_id','state_id'));
+ print $formcompany->select_ziptown((GETPOST('town','alphanohtml')?GETPOST('town','alphanohtml'):$object->town),'town',array('zipcode','selectcountry_id','state_id'));
print ' |
';
// Country
diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php
index fc147ad8fa1..75cdd3d3c12 100644
--- a/htdocs/adherents/type.php
+++ b/htdocs/adherents/type.php
@@ -42,7 +42,7 @@ $backtopage = GETPOST('backtopage','alpha');
$search_lastname = GETPOST('search_lastname','alpha');
$search_login = GETPOST('search_login','alpha');
$search_email = GETPOST('search_email','alpha');
-$type = GETPOST('type','alpha');
+$type = GETPOST('type','intcomma');
$status = GETPOST('status','alpha');
$limit = GETPOST('limit','int')?GETPOST('limit','int'):$conf->liste_limit;
@@ -59,8 +59,8 @@ if (! $sortfield) { $sortfield="d.lastname"; }
$label=GETPOST("label","alpha");
$subscription=GETPOST("subscription","int");
$vote=GETPOST("vote","int");
-$comment=GETPOST("comment");
-$mail_valid=GETPOST("mail_valid");
+$comment=GETPOST("comment",'alphanohtml');
+$mail_valid=GETPOST("mail_valid",'none');
// Security check
$result=restrictedArea($user,'adherent',$rowid,'adherent_type');
diff --git a/htdocs/admin/dav.php b/htdocs/admin/dav.php
index e882a56e2b8..6f82c4f94a9 100644
--- a/htdocs/admin/dav.php
+++ b/htdocs/admin/dav.php
@@ -83,7 +83,16 @@ if ($action == 'edit')
print '| ';
print $form->textwithpicto($langs->trans($key), $langs->trans($key.'Tooltip'));
- print ' | |
';
+ print '';
+ if ($key == 'DAV_ALLOW_PUBLIC_DIR' || $key == 'DAV_ALLOW_ECM_DIR')
+ {
+ print $form->selectyesno($key, $conf->global->$key, 1);
+ }
+ else
+ {
+ print '';
+ }
+ print ' | ';
}
print '';
@@ -104,7 +113,16 @@ else
{
print '| ';
print $form->textwithpicto($langs->trans($key),$langs->trans($key.'Tooltip'));
- print ' | ' . $conf->global->$key . ' |
';
+ print '';
+ if ($key == 'DAV_ALLOW_PUBLIC_DIR' || $key == 'DAV_ALLOW_ECM_DIR')
+ {
+ print yn($conf->global->$key);
+ }
+ else
+ {
+ print $conf->global->$key;
+ }
+ print ' | ';
}
print '';
diff --git a/htdocs/compta/tva/index.php b/htdocs/compta/tva/index.php
index 517f15c81f3..514f2030065 100644
--- a/htdocs/compta/tva/index.php
+++ b/htdocs/compta/tva/index.php
@@ -257,7 +257,8 @@ $mend = $tmp['mon'];
//var_dump($m);
$total=0; $subtotalcoll=0; $subtotalpaye=0; $subtotal=0;
$i=0; $mcursor=0;
-while ((($y < $yend) || ($y == $yend && $m < $mend)) && $mcursor < 1000) // $mcursor is to avoid too large loop
+
+while ((($y < $yend) || ($y == $yend && $m <= $mend)) && $mcursor < 1000) // $mcursor is to avoid too large loop
{
//$m = $conf->global->SOCIETE_FISCAL_MONTH_START + ($mcursor % 12);
if ($m == 13) $y++;
diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 0cab8e67ba9..cefa563fc86 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1451,9 +1451,10 @@ class Form
$out .= ajax_combobox($htmlid, $events, $conf->global->CONTACT_USE_SEARCH_TO_SELECT);
}
- if ($htmlname != 'none' || $options_only) $out.= '