Revize 2348
Přidáno uživatelem David Raška před více než 10 roky(ů)
freenetis/branches/1.2/application/controllers/settings.php | ||
---|---|---|
{
|
||
$additional_info = '<img src="'. url::base().'media/images/icons/activate.png" style="margin-left:10%;vertical-align:middle"/>';
|
||
}
|
||
else
|
||
{
|
||
$additional_info = '';
|
||
}
|
||
|
||
$this->form->upload('registration_document')
|
||
->label('Attached document')
|
||
... | ... | |
|
||
foreach ($form_data as $name => $value)
|
||
{
|
||
$issaved = $issaved && Settings::set($name, $value);
|
||
if ((is_a($this->form->$name, "Form_Upload") && $value !== '') ||
|
||
!is_a($this->form->$name, "Form_Upload")
|
||
)
|
||
{
|
||
$issaved = $issaved && Settings::set($name, $value);
|
||
}
|
||
}
|
||
|
||
if ($issaved)
|
||
... | ... | |
|
||
foreach ($form_data as $name => $value)
|
||
{
|
||
$issaved = $issaved && Settings::set($name, $value);
|
||
if ((is_a($this->form->$name, "Form_Upload") && $value !== '') ||
|
||
!is_a($this->form->$name, "Form_Upload")
|
||
)
|
||
{
|
||
$issaved = $issaved && Settings::set($name, $value);
|
||
}
|
||
}
|
||
|
||
if ($issaved)
|
Také k dispozici: Unified diff
Opravy:
- refs #886: Oprava uploadu - kdyz sa pri ulozeni parametru zaroven nenahral soubor, tak sa vynulovalo nastaveni