Permalink
Browse files

BackwardsCompatibilityBreak - Changed the existing file upload field …

…name from __flourish_existing_column_name to existing-column_name and change the delete file upload field name from __flourish_delete_column_name to delete-column_name
  • Loading branch information...
wbond committed Nov 1, 2008
1 parent 74b9a1f commit 99eb5d09a459f69591a981a265df58d9790aec41
Showing with 2 additions and 2 deletions.
  1. +2 −2 classes/fORMFile.php
View
@@ -1027,8 +1027,8 @@ static public function upload($object, &$values, &$old_values, &$related_records
} catch (fExpectedException $e) {
// If there is an existing file and none was uploaded, substitute the existing file
$existing_file = fRequest::get('__flourish_existing_' . $column);
$delete_file = fRequest::get('__flourish_delete_' . $column, 'boolean');
$existing_file = fRequest::get('existing-' . $column);
$delete_file = fRequest::get('delete-' . $column, 'boolean');
$no_upload = $e->getMessage() == fGrammar::compose('Please upload a file');
if ($existing_file && $delete_file && $no_upload) {

0 comments on commit 99eb5d0

Please sign in to comment.