[TYPO3] make title and alttext required
Tapio Markula
tapio.markula at atwebteam.com
Sat Apr 28 16:53:05 CEST 2007
Ralf Hettinger kirjoitti:
> Hi again,
>
> sorry for the late reply, lost track of this.
>
>
> Bas, unfortunately I was wrong - eval required does not work for textareas, see
> http://bugs.typo3.org/view.php?id=1402
$evalList = t3lib_div::trimExplode(',',$config['eval'],1);
if($this->renderReadonly || $config['readOnly']) {
return $this->getSingleField_typeNone_render($config,
$PA['itemFormElValue']);
@@ -1126,6 +1127,10 @@
if ($rows<$origRows) $rows = $origRows;
}
+ if (in_array('required',$evalList)) {
+
$this->requiredFields[$table.'_'.$row['uid'].'_'.$field]=$PA['itemFormElName'];
+ }
this seems to be fixed in 4.1.1
$config = $PA['fieldConf']['config'];
...
$evalList = t3lib_div::trimExplode(',',$config['eval'],1);
...
if (in_array('required',$evalList)) {
$this->requiredFields[$table.'_'.$row['uid'].'_'.$field]=$PA['itemFormElName'];
}
More information about the TYPO3-english
mailing list