Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision aa01fd25

Von Kivitendo Admin vor etwa 8 Jahren hinzugefügt

  • ID aa01fd254647f4a0b76852b3ab2773d60ffe6161
  • Vorgänger 9a846a3d
  • Nachfolger f2b44f13

TopQuickSearch - Parameter type heißt jetzt part_type

Unterschiede anzeigen:

SL/Controller/TopQuickSearch/Article.pm
56 56
    controller   => 'ic.pl',
57 57
    action       => 'generate_report',
58 58
    all          => $term,
59
    (searchitems => $self->type) x!!$self->type,
59
    (searchitems => $self->part_type) x!!$self->part_type,
60 60
  );
61 61
}
62 62

  
......
70 70
  );
71 71
}
72 72

  
73
sub type {
73
sub part_type {
74 74
  ()
75 75
}
76 76

  
......
82 82
    model      => 'Part',
83 83
    source     => {
84 84
      filter => {
85
        (type => $self->type) x!!$self->type,
85
        (part_type => $self->part_type) x!!$self->part_type,
86 86
        'all:substr:multi::ilike' => $::form->{term},
87 87
      },
88 88
    },
SL/Controller/TopQuickSearch/Assembly.pm
11 11

  
12 12
sub description_field { t8('Assemblies') }
13 13

  
14
sub type { 'assembly' }
14
sub part_type { 'assembly' }
15 15

  
16 16
1;
SL/Controller/TopQuickSearch/Part.pm
11 11

  
12 12
sub description_field { t8('Parts') }
13 13

  
14
sub type { 'part' }
14
sub part_type { 'part' }
15 15

  
16 16
1;
SL/Controller/TopQuickSearch/Service.pm
11 11

  
12 12
sub description_field { t8('Services') }
13 13

  
14
sub type { 'service' }
14
sub part_type { 'service' }
15 15

  
16 16
1;

Auch abrufbar als: Unified diff