View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Select Error in BillLine.php - ProjeQtOr
 
 

Select Error in BillLine.php

More
26 Oct 2016 16:32 #1 by antonio.grr
Hi.
In BillLine.php the lines

$crit.=" and workDate>=\"".$this->startDate."\"";
$crit.=" and workDate<=\"".$this->endDate."\"";

in function save and in function delete use double quote for date values. This is not allowed by postgres.
The same query fails when you do not enter start/ end date in form, as query is executed before validating mandatory field.
I fixed in this way

if ($this->startDate) $crit.=" and workDate>'" . $this->startDate . "'";
if ($this->endDate) $crit.=" and workDate<'" . $this->endDate . "'";
Best regards
The following user(s) said Thank You: babynus
The topic has been locked.
More
26 Oct 2016 17:31 #2 by babynus
Thanks for the fix.
It will be included in next version.

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.027 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.