contao/core — Issue #4035: Can't save number with leading zero to DC_File
Author: christian-kolb
Created: 2012-03-02 15:10:35+00:00
State: open

I have a DCA File which uses "File" as DataContainer.

```
// Config
'config' => array
(
'dataContainer' => 'File',
'closed' => true
)
```
One of the fields is there to save the postal which can be a number with a leading zero.

```php
'postal' => array
(
'label' => &$GLOBALS['TL_LANG']['settings']['postal'],
'inputType' => 'text',
'exclude'	=> true,
'eval' => array('mandatory'=>true, 'maxlength'=>32, 'tl_class'=>'w50'),
),
```
Unfortunately it doesn't work. Whenever I insert a number with a leadings zero, the value gets changed.

For example: "01129" is transformed to "74".
When I insert a letter at the end like "01129A" everything works like a charm. But there shouldn't be a letter at the end of a postal.

This works fine when I save the values to a table.