centurion-project/Centurion — Issue #23: Description issues with MultiFile
Author: DiaFR
Created: 2012-02-02 14:09:38+00:00
State: open

1. Media_Form_Decorator_MultiFile does not consider form element description

possible fix:

line 79
$description = '

' . htmlentities($description, null, 'UTF-8') . '

'; // as in \library\Centurion\Contrib\media\views\scripts\form\admin\_file.phtml

$content = <<Remove All
$description
...
EOS;

2. displayed description is not editable

line 31
$description = $this->_element->getFile()->getFileDescription();
=> Media_Form_Model_Admin_File::$_fileDescription = 'Images files'
Media_Form_Model_Admin_File::setFileDescription(); does not exist

possible fix:
$description = $this->_element->getFile()->getFilename()->getDescription(); // as in \library\Centurion\Contrib\media\views\scripts\form\admin\_file.phtml

this description can be modified: $this->getElement('...')->getFile()->getFilename()->setDescription(...); // (in form class)