summaryrefslogtreecommitdiffstats
path: root/codebase/base_connector.php
diff options
context:
space:
mode:
authorStanislau Wolski <stanislau.wolski@gmail.com>2012-08-14 19:57:34 -0700
committerStanislau Wolski <stanislau.wolski@gmail.com>2012-08-14 19:57:34 -0700
commit041bcdf20d59b9ef0d51a408f65f5e26a10abf17 (patch)
tree37a9b9560e3287040f0887d5b387c6968a4f76f5 /codebase/base_connector.php
parenta21541aebaccdef94197aa227b0917bf2320d701 (diff)
downloadconnector-php-041bcdf20d59b9ef0d51a408f65f5e26a10abf17.zip
connector-php-041bcdf20d59b9ef0d51a408f65f5e26a10abf17.tar.gz
connector-php-041bcdf20d59b9ef0d51a408f65f5e26a10abf17.tar.bz2
[fix] basic connectors use db_name instead of alias during xml generation
Diffstat (limited to 'codebase/base_connector.php')
-rw-r--r--codebase/base_connector.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/codebase/base_connector.php b/codebase/base_connector.php
index fcb76c8..8bb99d5 100644
--- a/codebase/base_connector.php
+++ b/codebase/base_connector.php
@@ -256,7 +256,7 @@ class DataItem{
for ($i=0; $i < sizeof($this->config->data); $i++){
$name=$this->config->data[$i]["name"];
$db_name=$this->config->data[$i]["db_name"];
- $str.=" ".$name."='".$this->xmlentities($this->data[$db_name])."'";
+ $str.=" ".$name."='".$this->xmlentities($this->data[$name])."'";
}
//output custom data
if ($this->userdata !== false)
@@ -825,7 +825,7 @@ class Connector {
public function filter($name, $value = false, $operation = '=') {
$this->filters[] = array('name' => $name, 'value' => $value, 'operation' => $operation);
}
-
+
public function clear_filter() {
$this->filters = array();
$this->request->set_filters(array());