Skip to content

Commit

Permalink
Fix: Sql error
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Apr 17, 2011
1 parent 54a5794 commit a3fb6ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/includes/boxes/box_actions.php
Expand Up @@ -73,9 +73,9 @@ function loadBox($max=5)
$sql = "SELECT a.id, a.label, a.datep as dp, a.percent as percentage,";
$sql.= " ta.code,";
$sql.= " s.nom, s.rowid as socid";
$sql.= " FROM ".MAIN_DB_PREFIX."c_actioncomm AS ta, ";
$sql.= " FROM (".MAIN_DB_PREFIX."c_actioncomm AS ta, ";
if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= " ".MAIN_DB_PREFIX."societe_commerciaux AS sc, ";
$sql.= MAIN_DB_PREFIX."actioncomm AS a";
$sql.= MAIN_DB_PREFIX."actioncomm AS a)";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe AS s ON a.fk_soc = s.rowid";
$sql.= " WHERE a.fk_action = ta.id";
$sql.= " AND a.percent <> 100";
Expand Down

0 comments on commit a3fb6ef

Please sign in to comment.