$filename is set even when $data[$field.'_file_name'] or $data[$model][$field.'_file_name'] is empty! so you better use !empty in this situation. it took me a really long time to figure out why the helper ignores the 'default_url' when the _file_name-field in the db is empty
$filename is set even when $data[$field.'_file_name'] or $data[$model][$field.'_file_name'] is empty! so you better use !empty in this situation. it took me a really long time to figure out why the helper ignores the 'default_url' when the _file_name-field in the db is empty