SQL query style
This commit is contained in:
parent
419dd3095b
commit
e420a75fa0
@ -3501,13 +3501,11 @@ class Societe extends CommonObject
|
|||||||
* Thirdparty commercials cannot be the same in both thirdparties so we look for them and remove some
|
* Thirdparty commercials cannot be the same in both thirdparties so we look for them and remove some
|
||||||
* Because this function is meant to be executed within a transaction, we won't take care of it.
|
* Because this function is meant to be executed within a transaction, we won't take care of it.
|
||||||
*/
|
*/
|
||||||
$sql = 'SELECT rowid
|
$sql = 'SELECT rowid FROM '.MAIN_DB_PREFIX.'societe_commerciaux ';
|
||||||
FROM '.MAIN_DB_PREFIX.'societe_commerciaux
|
$sql .= ' WHERE fk_soc = '.(int) $dest_id.' AND fk_user IN ( ';
|
||||||
WHERE fk_soc = '.(int) $dest_id.' AND fk_user IN (
|
$sql = ' SELECT fk_user ';
|
||||||
SELECT fk_user
|
$sql = ' FROM '.MAIN_DB_PREFIX.'societe_commerciaux ';
|
||||||
FROM '.MAIN_DB_PREFIX.'societe_commerciaux
|
$sql = ' WHERE fk_soc = '.(int) $origin_id.') ';
|
||||||
WHERE fk_soc = '.(int) $origin_id.'
|
|
||||||
);';
|
|
||||||
|
|
||||||
$query = $db->query($sql);
|
$query = $db->query($sql);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user