Skip to content
Snippets Groups Projects
Commit fb6a137b authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: use entity in auguria menu

parent 10637729
No related branches found
No related tags found
No related merge requests found
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -217,6 +217,15 @@ function run_sql($sqlfile,$silent=1)
$newsql=str_replace($from,$to,$newsql);
dol_syslog('Admin.lib::run_sql New Request '.($i+1).' sql='.$newsql, LOG_DEBUG);
}
// Replace __ENTITY__ with current entity id
while (eregi('(__ENTITY__)',$newsql,$reg))
{
$from = $reg[1];
$to = $conf->entity;
$newsql = str_replace($from,$to,$newsql);
dol_syslog('Admin.lib::run_sql New Request '.($i+1).' sql='.$newsql, LOG_DEBUG);
}
$result=$db->query($newsql);
if ($result)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment