Skip to content

Commit 72b0856

Browse files
author
Sanjeev Papnoi
committed
Merge remote-tracking branch 'origin/1.0' into HEAD
2 parents a911fd9 + c146ddd commit 72b0856

File tree

11 files changed

+750
-19
lines changed

11 files changed

+750
-19
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: 🐛 Bug Report
3+
about: Report errors and problems
4+
5+
---
6+
7+
**Description**
8+
<!-- A clear and concise description of the problem. -->
9+
10+
**How to reproduce**
11+
<!-- Code and/or config needed to reproduce the problem. -->
12+
13+
**Possible Solution**
14+
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->
15+
16+
**Additional context**
17+
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: 🚀 Feature Request
3+
about: RFC and ideas for new features and improvements
4+
5+
---
6+
7+
**Description**
8+
<!-- A clear and concise description of the new feature. -->
9+
10+
**Example**
11+
<!-- A simple example of the new feature in action (include PHP code, YAML config, etc.)
12+
If the new feature changes an existing feature, include a simple before/after comparison. -->
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: ⛔ Support Question
3+
about: Visit https://support.uvdesk.com/ to learn more about how the uvdesk team can assist you
4+
5+
---
6+
7+
We use GitHub issues only to discuss about uvdesk bugs and new features. For customizations and extended support:
8+
9+
- Contact us at support@uvdesk.com
10+
- Visit official support website (https://support.uvdesk.com/en/)
11+
- Visit our community forums (https://forums.uvdesk.com)
12+
13+
Thanks!

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!--
2+
Thank you for contributing to UVDesk! Please fill out this description template to help us to process your pull request.
3+
-->
4+
5+
### 1. Why is this change necessary?
6+
7+
8+
### 2. What does this change do, exactly?
9+
10+
11+
### 3. Please link to the relevant issues (if any).

.github/SECURITY.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Security Policy
2+
===============
3+
4+
⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.
5+
6+
If you have found a security issue in Uvdesk, please send the details to support@uvdesk.com and don't disclose it publicly until we can provide a fix for it.
7+
8+
Thanks!

API/TicketTypes.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
namespace Webkul\UVDesk\ApiBundle\API;
4+
5+
use Webkul\TicketBundle\Entity\Ticket;
6+
use Symfony\Component\HttpFoundation\Request;
7+
use Symfony\Component\HttpFoundation\Response;
8+
use Symfony\Component\HttpFoundation\JsonResponse;
9+
use Symfony\Component\EventDispatcher\GenericEvent;
10+
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
11+
use Webkul\UVDesk\CoreFrameworkBundle\Workflow\Events as CoreWorkflowEvents;
12+
13+
class TicketTypes extends Controller
14+
{
15+
/**
16+
* Getting listing of all ticket types
17+
*
18+
* @param Request $request
19+
* @return void
20+
*/
21+
public function ticketTypeList(Request $request)
22+
{
23+
$json = [];
24+
$entityManager = $this->getDoctrine()->getManager();
25+
$ticketTypes = $entityManager->createQueryBuilder()
26+
->select("TT")
27+
->from('UVDeskCoreFrameworkBundle:TicketType', 'TT')
28+
->Where('TT.isActive = 1')
29+
->getQuery()->getArrayResult();
30+
31+
return new JsonResponse($ticketTypes);
32+
}
33+
}
34+

0 commit comments

Comments
 (0)