Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e2b9e173

Von Sven Schöling vor etwa 15 Jahren hinzugefügt

  • ID e2b9e1737230c4e4209904784808dcaec723f730
  • Vorgänger 00e2320c
  • Nachfolger 1f110e87

Alle Vorkommen von all_departments abgesichert.

Unterschiede anzeigen:

bin/mozilla/ar.pl
180 180
  }
181 181

  
182 182
  # departments
183
  if (@{ $form->{all_departments} }) {
183
  if (@{ $form->{all_departments} || [] }) {
184 184
    $form->{selectdepartment} = "<option>\n";
185 185
    $form->{department}       = "$form->{department}--$form->{department_id}";
186 186

  
187 187
    map {
188 188
      $form->{selectdepartment} .=
189 189
        "<option>$_->{description}--$_->{id}\n"
190
    } (@{ $form->{all_departments} });
190
    } (@{ $form->{all_departments} || [] });
191 191
  }
192 192

  
193 193
  $form->{employee} = "$form->{employee}--$form->{employee_id}";
194 194

  
195 195
  # sales staff
196
  if (@{ $form->{all_employees} }) {
196
  if (@{ $form->{all_employees} || [] }) {
197 197
    $form->{selectemployee} = "";
198 198
    map { $form->{selectemployee} .= "<option>$_->{name}--$_->{id}\n" }
199
      (@{ $form->{all_employees} });
199
      (@{ $form->{all_employees} || [] });
200 200
  }
201 201

  
202 202
  # build the popup menus
......
1278 1278
  }
1279 1279

  
1280 1280
  # departments
1281
  if (@{ $form->{all_departments} }) {
1281
  if (@{ $form->{all_departments} || [] }) {
1282 1282
    $form->{selectdepartment} = "<option>\n";
1283 1283

  
1284 1284
    map {
1285 1285
      $form->{selectdepartment} .=
1286 1286
        "<option>$_->{description}--$_->{id}\n"
1287
    } (@{ $form->{all_departments} });
1287
    } (@{ $form->{all_departments} || [] });
1288 1288
  }
1289 1289

  
1290 1290
  $department = qq|

Auch abrufbar als: Unified diff