Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
fb6a137b
Commit
fb6a137b
authored
15 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: use entity in auguria menu
parent
10637729
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/admin/menus.php
+1
-0
1 addition, 0 deletions
htdocs/admin/menus.php
htdocs/includes/menus/init_menu_auguria.sql
+262
-262
262 additions, 262 deletions
htdocs/includes/menus/init_menu_auguria.sql
htdocs/lib/admin.lib.php
+9
-0
9 additions, 0 deletions
htdocs/lib/admin.lib.php
with
272 additions
and
262 deletions
htdocs/admin/menus.php
+
1
−
0
View file @
fb6a137b
<?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
...
...
This diff is collapsed.
Click to expand it.
htdocs/includes/menus/init_menu_auguria.sql
+
262
−
262
View file @
fb6a137b
Source diff could not be displayed: it is too large. Options to address this:
view the blob
.
This diff is collapsed.
Click to expand it.
htdocs/lib/admin.lib.php
+
9
−
0
View file @
fb6a137b
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment