bug fix in tickets date show

This commit is contained in:
Hesabix 2025-03-10 05:06:19 +00:00
parent 8e536f239d
commit 4dc7e8599b
2 changed files with 1 additions and 2 deletions

View file

@ -55,6 +55,7 @@ class GeneralController extends AbstractController
#[Route('/front/print/{id}', name: 'app_front_print')] #[Route('/front/print/{id}', name: 'app_front_print')]
public function app_front_print(Provider $provider, EntityManagerInterface $entityManager, PdfMGR $pdfMGR, string $id): Response public function app_front_print(Provider $provider, EntityManagerInterface $entityManager, PdfMGR $pdfMGR, string $id): Response
{ {
$print = $entityManager->getRepository(PrinterQueue::class)->findOneBy(['pid' => $id]); $print = $entityManager->getRepository(PrinterQueue::class)->findOneBy(['pid' => $id]);
if (!$print) { if (!$print) {

View file

@ -98,7 +98,6 @@ class SupportController extends AbstractController
// تبدیل به آرایه با Explore // تبدیل به آرایه با Explore
$serializedItems = array_map(function ($item) use ($explore, $jdate) { $serializedItems = array_map(function ($item) use ($explore, $jdate) {
$item->setDateSubmit($jdate->jdate('Y/n/d', $item->getDateSubmit()));
return $explore->ExploreSupportTicket($item, $this->getUser()); return $explore->ExploreSupportTicket($item, $this->getUser());
}, $items); }, $items);
@ -258,7 +257,6 @@ class SupportController extends AbstractController
// استفاده از Explore برای تبدیل اشیاء به آرایه // استفاده از Explore برای تبدیل اشیاء به آرایه
$serializedItems = array_map(function ($item) use ($explore, $jdate) { $serializedItems = array_map(function ($item) use ($explore, $jdate) {
$item->setDateSubmit($jdate->jdate('Y/n/d', $item->getDateSubmit()));
return $explore->ExploreSupportTicket($item, $this->getUser()); return $explore->ExploreSupportTicket($item, $this->getUser());
}, $items); }, $items);