Bugfix benutzer

This commit is contained in:
Xenomporio 2022-05-30 14:48:41 +02:00
parent ca9c1fc354
commit 61c0675e58
2 changed files with 1167 additions and 1157 deletions

View File

@ -30108,11 +30108,14 @@ function ChargenMHDAuslagern($artikel, $menge, $lagerplatztyp, $lpid,$typ,$wert,
//$tpl .="<option value=\"0\">-- kein --</option>";
$drucker = $this->app->DB->SelectArr("SELECT id, name FROM drucker WHERE aktiv='1' AND art='1'");
if (gettype($drucker) == 'array') {
for($i=0;$i<count($drucker);$i++)
{
if($drucker[$i]['id']==$selected) $mark="selected"; else $mark="";
$tpl .="<option value=\"{$drucker[$i]['id']}\" $mark>{$drucker[$i]['name']}</option>";
}
}
return $tpl;
}

View File

@ -1009,6 +1009,8 @@ class Benutzer
for($i=0;$i<$maxcols || $i<count($value);$i++) {
if($i%$maxcols==0) $out .= "<tr>";
if (gettype($rights[$module]) == 'array') {
if(isset($value[$i]) && in_array($value[$i], $rights[$module])) {
$class = 'class="blue"';
$active = '1';
@ -1016,6 +1018,11 @@ class Benutzer
$class = 'class="grey"';
$active = 0;
}
} else {
$class = 'class="grey"';
$active = 0;
}
$class = ((isset($value[$i])) ? $class : '');
$action = ((isset($value[$i])) ? strtolower($value[$i]) : '');