Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix: BUG#33584

  • Loading branch information...
commit 8ee98b484600307100e955f6f38fe6a7d8799b8d 1 parent 1e5a861
Laurent Destailleur eldy authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 htdocs/commande/class/commande.class.php
8 htdocs/commande/class/commande.class.php
View
@@ -1346,9 +1346,11 @@ function loadExpeditions($filtre_statut=-1)
function nb_expedition()
{
$sql = 'SELECT count(*)';
- $sql.= ' FROM '.MAIN_DB_PREFIX.'expedition as e,';
- $sql.= ' '.MAIN_DB_PREFIX."element_element as el ON el.fk_target = e.rowid AND el.targettype = 'shipping'";
- $sql.= " WHERE el.fk_source = ".$this->id;
+ $sql.= ' FROM '.MAIN_DB_PREFIX.'expedition as e';
+ $sql.= ', '.MAIN_DB_PREFIX.'element_element as el';
+ $sql.= ' WHERE el.fk_source = '.$this->id;
+ $sql.= " AND el.fk_target = e.rowid";
+ $sql.= " AND el.targettype = 'shipping'";
$resql = $this->db->query($sql);
if ($resql)
Please sign in to comment.
Something went wrong with that request. Please try again.