Revision e2b9e173
Von Sven Schöling vor etwa 15 Jahren hinzugefügt
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
Alle Vorkommen von all_departments abgesichert.