Du hast einen Bug entdeckt - hier der Workarround bis zur nächsten Version:
class.tx_powermail_mandatory.php (ca. Zeile 72) :
PHP-Code:
if ($res) { // If there is a result
while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) { // One loop for every field
if ($this->pi_getFFvalue(t3lib_div::xml2array($row['flexform']),'mandatory') == 1) { // if in current xml mandatory == 1
if (!is_array($this->sessionfields['uid'.$row['uid']])) { // first level
if (!trim($this->sessionfields['uid'.$row['uid']]) || !isset($this->sessionfields['uid'.$row['uid']])) { // only if current value is not set in session (piVars)
$this->sessionfields['ERROR'][$row['uid']][] = $this->pi_getLL('locallangmarker_mandatory_emptyfield').' <b>'.$row['title'].'</b>'; // set current error to sessionlist
}
} else { // second level (maybe for checkboxes
if (isset($this->sessionfields['uid'.$row['uid']])) {
$error=1; // errors on start (by default)
foreach ($this->sessionfields['uid'.$row['uid']] as $key => $value) { // one loop for every field
if ($this->sessionfields['uid'.$row['uid']][$key] != '') $error = 0; // set error
}
if ($error) $this->sessionfields['ERROR'][$row['uid']][] = $this->pi_getLL('locallangmarker_mandatory_emptyfield').' <b>'.$row['title'].'</b>'; // set current error to sessionlist
}
}
}
}
}
Damit den alten Code ersetzen
Grüße, Alex
Bitte melden ob es funzt