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
b3389ea8
Commit
b3389ea8
authored
16 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Bad handler used
parent
373a270c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/contrat/services.php
+3
-2
3 additions, 2 deletions
htdocs/contrat/services.php
with
3 additions
and
2 deletions
htdocs/contrat/services.php
+
3
−
2
View file @
b3389ea8
...
...
@@ -59,8 +59,9 @@ $staticcontratligne=new ContratLigne($db);
/*
*
Affichage page
*
View
*/
llxHeader
();
$sql
=
"SELECT s.rowid as socid, s.nom, c.rowid as cid,"
;
...
...
@@ -82,7 +83,7 @@ if (!$user->rights->societe->client->voir && !$socid) $sql .= " AND s.rowid = sc
if
(
$mode
==
"0"
)
$sql
.
=
" AND cd.statut = 0"
;
if
(
$mode
==
"4"
)
$sql
.
=
" AND cd.statut = 4"
;
if
(
$mode
==
"5"
)
$sql
.
=
" AND cd.statut = 5"
;
if
(
$filter
==
"expired"
)
$sql
.
=
" AND date_fin_validite < "
.
$
this
->
db
->
idate
(
mktime
());
if
(
$filter
==
"expired"
)
$sql
.
=
" AND date_fin_validite < "
.
$db
->
idate
(
mktime
());
if
(
$search_nom
)
$sql
.
=
" AND s.nom like '%"
.
addslashes
(
$search_nom
)
.
"%'"
;
if
(
$search_contract
)
$sql
.
=
" AND c.rowid = '"
.
addslashes
(
$search_contract
)
.
"'"
;
if
(
$search_service
)
$sql
.
=
" AND (p.ref like '%"
.
addslashes
(
$search_service
)
.
"%' OR p.description like '%"
.
addslashes
(
$search_service
)
.
"%')"
;
...
...
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