Bug fix Patch

This commit is contained in:
Manish Verma
2016-10-19 13:35:11 +05:30
parent b13fa06585
commit 0bde6a4b6e
6 changed files with 50 additions and 11 deletions

View File

@@ -2065,10 +2065,14 @@ CREATE TABLE IF NOT EXISTS `ticket_source` (
-- Dumping data for table `ticket_source`
--
INSERT INTO `ticket_source` (`id`, `name`, `value`) VALUES
(1, 'web', 'Web'),
(2, 'email', 'E-mail'),
(3, 'agent', 'Agent Panel');
INSERT INTO `ticket_source` (`id`, `name`, `value`, `css_class`) VALUES
(1, 'web', 'Web', 'fa fa-internet-explorer'),
(2, 'email', 'E-mail', 'fa fa-envelope'),
(3, 'agent', 'Agent Panel', 'fa fa-envelope'),
(4, 'facebook', 'Facebook', 'fa fa-facebook'),
(5, 'twitter', 'Twitter', 'fa fa-twitter'),
(6, 'call', 'Call', 'fa fa-phone'),
(7, 'chat', 'Chat', 'fa fa-comment');
-- --------------------------------------------------------

View File

@@ -2065,10 +2065,14 @@ CREATE TABLE IF NOT EXISTS `ticket_source` (
-- Dumping data for table `ticket_source`
--
INSERT INTO `ticket_source` (`id`, `name`, `value`) VALUES
(1, 'web', 'Web'),
(2, 'email', 'E-mail'),
(3, 'agent', 'Agent Panel');
INSERT INTO `ticket_source` (`id`, `name`, `value`, `css_class`) VALUES
(1, 'web', 'Web', 'fa fa-internet-explorer'),
(2, 'email', 'E-mail', 'fa fa-envelope'),
(3, 'agent', 'Agent Panel', 'fa fa-envelope'),
(4, 'facebook', 'Facebook', 'fa fa-facebook'),
(5, 'twitter', 'Twitter', 'fa fa-twitter'),
(6, 'call', 'Call', 'fa fa-phone'),
(7, 'chat', 'Chat', 'fa fa-comment');
-- --------------------------------------------------------

View File

@@ -316,3 +316,29 @@ INSERT INTO `templates` (`id`, `name`, `variable`, `type`, `subject`, `message`,
(13, 'This template is for sending notice to client when password is changed', '1', 13, 'Verify your email address', 'Hello {!!$user!!},<br /><br />Your password is successfully changed.Your new password is : {!!$user_password!!}<br /><br />Thank You.<br /><br />Kind Regards,<br /> {!!$system_from!!}', '', 1, '2016-10-10 01:29:38', '2016-10-10 01:29:38');
-- --------------------------------------------------------------------------
--
-- Alter Table structure for table `ticket_source`
--
DROP TABLE IF EXISTS `ticket_source`;
CREATE TABLE IF NOT EXISTS `ticket_source` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`value` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`css_class` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `ticket_source`
--
INSERT INTO `ticket_source` (`id`, `name`, `value`, `css_class`) VALUES
(1, 'web', 'Web', 'fa fa-internet-explorer'),
(2, 'email', 'E-mail', 'fa fa-envelope'),
(3, 'agent', 'Agent Panel', 'fa fa-envelope'),
(4, 'facebook', 'Facebook', 'fa fa-facebook'),
(5, 'twitter', 'Twitter', 'fa fa-twitter'),
(6, 'call', 'Call', 'fa fa-phone'),
(7, 'chat', 'Chat', 'fa fa-comment');
-- ----------------------------------------------------------------------

View File

@@ -16,6 +16,7 @@ class CreateTicketSourceTable extends Migration
$table->increments('id');
$table->string('name');
$table->string('value');
$table->string('css_class');
});
}

View File

@@ -281,9 +281,13 @@ class DatabaseSeeder extends Seeder
// System::create(array('id' => '1', 'status' => '1', 'department' => '1', 'date_time_format' => '1', 'time_zone' => '32'));
Ticket::create(['num_format' => '$$$$-####-####', 'num_sequence' => 'sequence', 'collision_avoid' => '2', 'priority' => '1', 'sla' => '2', 'help_topic' => '1', 'status' => '1']);
/* Ticket source */
Ticket_source::create(['name' => 'web', 'value' => 'Web']);
Ticket_source::create(['name' => 'email', 'value' => 'E-mail']);
Ticket_source::create(['name' => 'agent', 'value' => 'Agent Panel']);
Ticket_source::create(['name' => 'web', 'value' => 'Web', 'css_class' => 'fa fa-internet-explorer']);
Ticket_source::create(['name' => 'email', 'value' => 'E-mail', 'css_class' => 'fa fa-envelope']);
Ticket_source::create(['name' => 'agent', 'value' => 'Agent Panel', 'css_class' => 'fa fa-envelope']);
Ticket_source::create(['name' => 'facebook', 'value' => 'Facebook', 'css_class' => 'fa fa-facebook']);
Ticket_source::create(['name' => 'twitter', 'value' => 'Twitter', 'css_class' => 'fa fa-twitter']);
Ticket_source::create(['name' => 'call', 'value' => 'Call', 'css_class' => 'fa fa-phone']);
Ticket_source::create(['name' => 'chat', 'value' => 'Chat', 'css_class' => 'fa fa-comment']);
/* Version check */
Version_Check::create(['id' => '1']);
/* System widgets */

Binary file not shown.