From 0d229710da36391f1a9e6a8579c4cff42d21554a Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 31 Oct 2013 09:51:21 -0500 Subject: [PATCH] New names for initial deps and topics This will hopefully remove some of the confusion from the repeated names in the various initial data --- include/class.topic.php | 4 ++++ include/i18n/en_US/department.yaml | 24 +++++++++++------------ include/i18n/en_US/group.yaml | 8 ++++++-- include/i18n/en_US/help_topic.yaml | 31 ++++++++++++++++++++++-------- 4 files changed, 45 insertions(+), 22 deletions(-) diff --git a/include/class.topic.php b/include/class.topic.php index 140e44e6b..881d33afa 100644 --- a/include/class.topic.php +++ b/include/class.topic.php @@ -228,6 +228,10 @@ class Topic { $errors['priority_id']='You must select a priority'; if($errors) return false; + + foreach (array('sla_id','form_id','page_id','pid') as $f) + if (!isset($vars[$f])) + $vars[$f] = 0; $sql=' updated=NOW() ' .',topic='.db_input($vars['topic']) diff --git a/include/i18n/en_US/department.yaml b/include/i18n/en_US/department.yaml index 7bedf7190..05ffc9d9c 100644 --- a/include/i18n/en_US/department.yaml +++ b/include/i18n/en_US/department.yaml @@ -8,25 +8,25 @@ # # NOTE: The department listed first by ID# will be the default department # +# NOTE: ------------------------------------ +# The very first group listed in this document will be the primary +# department of the initial staff member -- the administrator. --- - id: 1 name: Support signature: | - Support Dept + Support Department ispublic: 1 - sla_id: 0 - tpl_id: 0 - # The email_id and autoresonse_emaiL_id are reuired, but will be set to - # the default email later in the install process - email_id: 0 - autoresp_email_id: 0 - id: 2 - name: Billing + name: Sales signature: | - Billing Dept + Sales and Customer Retention ispublic: 1 sla_id: 1 - tpl_id: 0 - email_id: 0 - autoresp_email_id: 0 + +- id: 3 + name: Maintenance + signature: | + Maintenance Department + ispublic: 0 diff --git a/include/i18n/en_US/group.yaml b/include/i18n/en_US/group.yaml index 6a358db73..160a9c644 100644 --- a/include/i18n/en_US/group.yaml +++ b/include/i18n/en_US/group.yaml @@ -28,11 +28,15 @@ # depts: (list<Department<id>>) id's of the departments to which the group # should initially have access # +# NOTE: ------------------------------------ +# The very first group listed in this document will be the primary group of +# the initial staff member -- the administrator. --- - isactive: 1 - name: Admins + name: Overseers notes: | - System overlords + System overlords. These folks (initially) have full control to all the + departments they have access to. can_create_tickets: 1 can_edit_tickets: 1 can_delete_tickets: 1 diff --git a/include/i18n/en_US/help_topic.yaml b/include/i18n/en_US/help_topic.yaml index fe5294319..e002905d3 100644 --- a/include/i18n/en_US/help_topic.yaml +++ b/include/i18n/en_US/help_topic.yaml @@ -21,19 +21,34 @@ - isactive: 1 ispublic: 1 dept_id: 1 - sla_id: 1 priority_id: 2 - form_id: 0 - topic: Support + topic: General Inquiry notes: | - Tickets that primarily concern the support deparment + Questions about products or services - isactive: 1 ispublic: 1 dept_id: 1 - sla_id: 0 + priority_id: 1 + topic: Feedback + notes: | + Tickets that primarily concern the sales and billing departments + +- id: 10 + isactive: 1 + ispublic: 1 + dept_id: 1 priority_id: 2 - form_id: 0 - topic: Billing + topic: Report a Problem + notes: | + Product, service, or equipment related issues + +- pid: 10 + isactive: 1 + ispublic: 1 + dept_id: 1 + sla_id: 1 + priority_id: 3 + topic: Access Issue notes: | - Tickets that primarily concern the sales and billing deparments + Report an inability access a physical or virtual asset -- GitLab