bug fix in tickets date show
This commit is contained in:
parent
8e536f239d
commit
4dc7e8599b
|
@ -55,6 +55,7 @@ class GeneralController extends AbstractController
|
|||
#[Route('/front/print/{id}', name: 'app_front_print')]
|
||||
public function app_front_print(Provider $provider, EntityManagerInterface $entityManager, PdfMGR $pdfMGR, string $id): Response
|
||||
{
|
||||
|
||||
$print = $entityManager->getRepository(PrinterQueue::class)->findOneBy(['pid' => $id]);
|
||||
|
||||
if (!$print) {
|
||||
|
|
|
@ -98,7 +98,6 @@ class SupportController extends AbstractController
|
|||
|
||||
// تبدیل به آرایه با Explore
|
||||
$serializedItems = array_map(function ($item) use ($explore, $jdate) {
|
||||
$item->setDateSubmit($jdate->jdate('Y/n/d', $item->getDateSubmit()));
|
||||
return $explore->ExploreSupportTicket($item, $this->getUser());
|
||||
}, $items);
|
||||
|
||||
|
@ -258,7 +257,6 @@ class SupportController extends AbstractController
|
|||
|
||||
// استفاده از Explore برای تبدیل اشیاء به آرایه
|
||||
$serializedItems = array_map(function ($item) use ($explore, $jdate) {
|
||||
$item->setDateSubmit($jdate->jdate('Y/n/d', $item->getDateSubmit()));
|
||||
return $explore->ExploreSupportTicket($item, $this->getUser());
|
||||
}, $items);
|
||||
|
||||
|
|
Loading…
Reference in a new issue