new deployer command
This commit is contained in:
@@ -22,6 +22,8 @@ use Modules\Helpdesk\Services\TicketService;
|
||||
|
||||
final class TicketCreate extends Component
|
||||
{
|
||||
private const COMPANY_NULL_ORDER = 'company_id is null';
|
||||
|
||||
use WithFileUploads;
|
||||
|
||||
public ?int $company_id = null;
|
||||
@@ -188,7 +190,7 @@ final class TicketCreate extends Component
|
||||
$query->where('company_id', $this->company_id)
|
||||
->orWhereNull('company_id');
|
||||
}))
|
||||
->orderByRaw('company_id is null')
|
||||
->orderByRaw(self::COMPANY_NULL_ORDER)
|
||||
->orderBy('name')
|
||||
->value('id');
|
||||
}
|
||||
@@ -201,7 +203,7 @@ final class TicketCreate extends Component
|
||||
$query->where('company_id', $this->company_id)
|
||||
->orWhereNull('company_id');
|
||||
}))
|
||||
->orderByRaw('company_id is null')
|
||||
->orderByRaw(self::COMPANY_NULL_ORDER)
|
||||
->orderBy('name')
|
||||
->value('id');
|
||||
}
|
||||
@@ -218,7 +220,7 @@ final class TicketCreate extends Component
|
||||
$query->where('team_id', $this->team_id)
|
||||
->orWhereNull('team_id');
|
||||
}))
|
||||
->orderByRaw('company_id is null')
|
||||
->orderByRaw(self::COMPANY_NULL_ORDER)
|
||||
->orderByRaw('team_id is null')
|
||||
->orderBy('title')
|
||||
->value('id');
|
||||
|
||||
Reference in New Issue
Block a user