Zend Framework

Zend_File_Transfer_Adapter_Abstract::setOptions() doesn't overwrite options

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6.1
  • Fix Version/s: 1.6.1
  • Component/s: Zend_File_Transfer
  • Labels:
    None

Description

bug containing revision: 11362

You'll still get errors on uploading files with Zend_Form_Element_File although the field is not required. The cause of the problem is, that the line 162 in Zend_Form_Element_File.php $adapter->setOptions(array('ignoreNoFile' => true)); does not take effect.

Solution: (Zend_File_Transfer_Adapter_Abstract class on line 476)

old:
$this->_options += $options;

fixed:
$this->_options = $options + $this->_options;

Activity

Hide
Thomas Weidner added a comment -

Some new features have been added.
Mentioned behaviour (and codelines) can not be found.

Show
Thomas Weidner added a comment - Some new features have been added. Mentioned behaviour (and codelines) can not be found.
Hide
Thomas Weidner added a comment -

Unable to reproduce with actual release.

Show
Thomas Weidner added a comment - Unable to reproduce with actual release.
Hide
Ulrich Berkmüller added a comment -

yes, the feature of revision 11364 ( - added options check to prevent illegal options) fixed the bug automatically.

Show
Ulrich Berkmüller added a comment - yes, the feature of revision 11364 ( - added options check to prevent illegal options) fixed the bug automatically.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: