FIX avoid error if "workstation" module not enabled
This commit is contained in:
parent
12c7807cdb
commit
e8fa26ff91
1 changed files with 6 additions and 4 deletions
|
|
@ -158,10 +158,12 @@ if ($filtertype != 1) {
|
|||
print $formproduct->selectMeasuringUnits("fk_unit", "time", ($line->fk_unit) ? $line->fk_unit : '', 0, 0);
|
||||
print '</td>';
|
||||
|
||||
$coldisplay++;
|
||||
print '<td class="nobottom nowrap linecolworkstation">';
|
||||
print $formproduct->selectWorkstations($line->fk_default_workstation, 'idworkstations', 1);
|
||||
print '</td>';
|
||||
if (isModEnabled("workstation")) {
|
||||
$coldisplay++;
|
||||
print '<td class="nobottom nowrap linecolworkstation">';
|
||||
print $formproduct->selectWorkstations($line->fk_default_workstation, 'idworkstations', 1);
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
$coldisplay++;
|
||||
print '<td class="nobottom nowrap linecolcostprice right">';
|
||||
|
|
|
|||
Loading…
Reference in a new issue