mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX Fixed quoting in Money
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@77132 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5322ecc692
commit
7a18cd8bec
@ -7,7 +7,6 @@
|
|||||||
* @version $Id: Currency.php 6137 2007-08-19 14:55:27Z shreef $
|
* @version $Id: Currency.php 6137 2007-08-19 14:55:27Z shreef $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
set_include_path(get_include_path() . PATH_SEPARATOR . BASE_PATH . '/sapphire/thirdparty');
|
|
||||||
require_once 'Zend/Currency.php';
|
require_once 'Zend/Currency.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -88,8 +87,8 @@ class Money extends DBField implements CompositeDBField {
|
|||||||
|
|
||||||
function addToQuery(&$query) {
|
function addToQuery(&$query) {
|
||||||
parent::addToQuery($query);
|
parent::addToQuery($query);
|
||||||
$query->select[] = $this->name . "Amount";
|
$query->select[] = sprintf('"%sAmount"', $this->name);
|
||||||
$query->select[] = $this->name . "Currency";
|
$query->select[] = sprintf('"%sCurrency"', $this->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
function setValue($value,$record=null) {
|
function setValue($value,$record=null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user