Skip to content

Commit dbac6d9

Browse files
committed
[update] version 3.2.1
1 parent e840e7d commit dbac6d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+412
-261
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gantt",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"homepage": "http://dhtmlx.com/docs/products/dhtmlxGantt/",
55
"description": "An open source JavaScript Gantt chart that helps you illustrate a project schedule in a nice-looking chart.",
66
"main": [

codebase/connector/db_common.php

+14-6
Original file line numberDiff line numberDiff line change
@@ -793,13 +793,20 @@ protected function build_where($rules,$relation=false){
793793
for ($i=0; $i < sizeof($rules); $i++)
794794
if (is_string($rules[$i]))
795795
array_push($sql,"(".$rules[$i].")");
796-
else
797-
if ($rules[$i]["value"]!=""){
798-
if (!$rules[$i]["operation"])
799-
array_push($sql,$this->escape_name($rules[$i]["name"])." LIKE '%".$this->escape($rules[$i]["value"])."%'");
800-
else
801-
array_push($sql,$this->escape_name($rules[$i]["name"])." ".$rules[$i]["operation"]." '".$this->escape($rules[$i]["value"])."'");
796+
else {
797+
$filtervalue = $rules[$i]["value"];
798+
$filteroperation = $rules[$i]["operation"];
799+
if ($filtervalue!=""){
800+
if (!$filteroperation)
801+
array_push($sql,$this->escape_name($rules[$i]["name"])." LIKE '%".$this->escape($filtervalue)."%'");
802+
else {
803+
if ($filteroperation != "IN")
804+
$filtervalue = "'".$this->escape($filtervalue)."'";
805+
806+
array_push($sql,$this->escape_name($rules[$i]["name"])." ".$filteroperation." ".$filtervalue);
807+
}
802808
}
809+
}
803810

804811
if ($relation !== false && $relation !== ""){
805812
$relsql = $this->escape_name($this->config->relation_id["db_name"])." = '".$this->escape($relation)."'";
@@ -1053,6 +1060,7 @@ public function select($sql){
10531060
}
10541061

10551062
$relation_id = $this->config->relation_id["db_name"];
1063+
$result = array();
10561064

10571065
for ($i = 0; $i < count($this->connection); $i++) {
10581066
$item = $this->connection[$i];

codebase/connector/strategy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class MultitableTreeRenderStrategy extends TreeRenderStrategy {
245245

246246
private $level = 0;
247247
private $max_level = null;
248-
protected $sep = ",";
248+
protected $sep = "-@level@-";
249249

250250
public function __construct($conn) {
251251
parent::__construct($conn);

codebase/connector/tree_connector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function set_image($img_folder_closed,$img_folder_open=false,$img_leaf=false){
121121
function to_xml_start(){
122122
if ($this->skip) return "";
123123

124-
$str1="<item id='".$this->get_id()."' text='".$this->xmlentities($this->data[$this->config->text[0]["name"]])."' ";
124+
$str1="<item id='".$this->xmlentities($this->get_id())."' text='".$this->xmlentities($this->data[$this->config->text[0]["name"]])."' ";
125125
if ($this->has_kids()==true) $str1.="child='".$this->has_kids()."' ";
126126
if ($this->im0) $str1.="im0='".$this->im0."' ";
127127
if ($this->im1) $str1.="im1='".$this->im1."' ";

codebase/dhtmlxgantt.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/dhtmlxgantt.js

+151-133
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/ext/dhtmlxgantt_marker.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/ext/dhtmlxgantt_multiselect.js

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/ext/dhtmlxgantt_quick_info.js

+6-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/ext/dhtmlxgantt_tooltip.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_ar.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_be.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_ca.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_cn.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_cs.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_da.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_de.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_el.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_es.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

codebase/locale/locale_fi.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)