centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

Description issues with MultiFile #23

Open aurmil opened 12 years ago

aurmil commented 12 years ago

1 - Media_Form_Decorator_MultiFile does not consider form element description

possible fix:

line 79 $description = '< p class="field-description">' . htmlentities($description, null, 'UTF-8') . '< / p>'; // as in \library\Centurion\Contrib\media\views\scripts\form\admin_file.phtml

$content = <<< E O S ... < sp an i d="btnCancel" on cli ck="swfu.cancelQueue();">Remove All</ sp an> $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)