diff --git a/lib/core/widgets/shared_forms/model_section.dart b/lib/core/widgets/shared_forms/model_section.dart index 7aaa097..c52b7a3 100644 --- a/lib/core/widgets/shared_forms/model_section.dart +++ b/lib/core/widgets/shared_forms/model_section.dart @@ -83,6 +83,8 @@ class SharedModelSection extends StatelessWidget { Padding( padding: const EdgeInsets.symmetric(horizontal: 16.0), child: TextField( + autofocus: true, + textInputAction: TextInputAction.search, decoration: InputDecoration( hintText: 'Cerca modello (es. iPhone 15...)', prefixIcon: const Icon(Icons.search), diff --git a/lib/features/tickets/models/ticket_model.dart b/lib/features/tickets/models/ticket_model.dart index 8ca99fb..0b96707 100644 --- a/lib/features/tickets/models/ticket_model.dart +++ b/lib/features/tickets/models/ticket_model.dart @@ -295,7 +295,7 @@ class TicketModel extends Equatable { ?.myFormat(), sourceModelName: (map['source_model']?['name_with_brand'] as String?) ?.myFormat(), - createdById: map['staff_id'] as String?, + createdById: map['created_by_id'] as String?, createdByName: (map['created_by']?['name'] as String?)?.myFormat(), assignedToId: map['assigned_to_id'] as String?, assignedToName: (map['assigned_to']?['name'] as String?)?.myFormat(), diff --git a/lib/features/tickets/ui/ticket_form_screen.dart b/lib/features/tickets/ui/ticket_form_screen.dart index 12b2842..13548a6 100644 --- a/lib/features/tickets/ui/ticket_form_screen.dart +++ b/lib/features/tickets/ui/ticket_form_screen.dart @@ -304,7 +304,7 @@ class _TicketFormScreenState extends State { } if (state.status == TicketFormStatus.success) { - context.read().fetchTickets(); + context.read().fetchTickets(reset: true); _showSuccessActions( context, state.ticket,