Skip to content

Commit

Permalink
Added Section Schemas compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Ghita committed May 17, 2012
1 parent 37add92 commit 1c8805d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions fields/field.multilingual_upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function commit(){
`unique` = '%s'
WHERE
`field_id` = '%s';",
$this->handle(), $this->get('def_ref_lang'), $this->get('unique'), $this->get('id')
$this->handle(), $this->get('def_ref_lang') === 'yes' ? 'yes' : 'no', $this->get('unique'), $this->get('id')
));
}

Expand Down Expand Up @@ -346,6 +346,14 @@ public function entryDataCleanup($entry_id, $data){



/*------------------------------------------------------------------------------------------------*/
/* Field schema */
/*------------------------------------------------------------------------------------------------*/

public function appendFieldSchema($f){}



/*------------------------------------------------------------------------------------------------*/
/* In-house */
/*------------------------------------------------------------------------------------------------*/
Expand All @@ -367,7 +375,6 @@ protected function getUniqueFilename($filename, $lang_code = null, $enable = fal
return $filename;
}


/**
* It is possible that data from Symphony won't come as expected associative array.
*
Expand Down

0 comments on commit 1c8805d

Please sign in to comment.