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
12932537
Commit
12932537
authored
20 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Modif l'appel de la fonction db->clone en db->dbclone
parent
d176de4a
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/compta/facture/facture-rec.class.php
+7
-6
7 additions, 6 deletions
htdocs/compta/facture/facture-rec.class.php
htdocs/facture.class.php
+9
-7
9 additions, 7 deletions
htdocs/facture.class.php
htdocs/notify.class.php
+9
-7
9 additions, 7 deletions
htdocs/notify.class.php
with
25 additions
and
20 deletions
htdocs/compta/facture/facture-rec.class.php
+
7
−
6
View file @
12932537
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2003
-2005
Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -21,10 +21,11 @@
*
*/
/*! \file htdocs/compta/facture/facture-rec.class.php
\ingroup facture
\brief Fichier de la classe des factures recurentes
\version $Revision$
/*!
\file htdocs/compta/facture/facture-rec.class.php
\ingroup facture
\brief Fichier de la classe des factures recurentes
\version $Revision$
*/
...
...
@@ -339,7 +340,7 @@ class FactureRec
$obj
=
$this
->
db
->
fetch_object
(
$result
);
$sql
=
"UPDATE "
.
MAIN_DB_PREFIX
.
"product SET nbvente=nbvente+1 WHERE rowid = "
.
$obj
->
fk_product
;
$db2
=
$this
->
db
->
clone
();
$db2
=
$this
->
db
->
db
clone
();
$result
=
$db2
->
query
(
$sql
);
$i
++
;
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/facture.class.php
+
9
−
7
View file @
12932537
<?php
/* Copyright (C) 2002-200
4
Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2002-200
5
Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
...
...
@@ -24,15 +24,17 @@
*/
/**
\file htdocs/facture.class.php
\ingroup facture
\brief Fichier de la classe des factures clients
\version $Revision$
\file htdocs/facture.class.php
\ingroup facture
\brief Fichier de la classe des factures clients
\version $Revision$
*/
/** \class Facture
\brief Classe permettant la gestion des factures clients
\brief Classe permettant la gestion des factures clients
*/
class
Facture
...
...
@@ -647,7 +649,7 @@ class Facture
$obj
=
$this
->
db
->
fetch_object
(
$result
);
$sql
=
"UPDATE "
.
MAIN_DB_PREFIX
.
"product SET nbvente=nbvente+1 WHERE rowid = "
.
$obj
->
fk_product
;
$db2
=
$this
->
db
->
clone
();
$db2
=
$this
->
db
->
db
clone
();
$result
=
$db2
->
query
(
$sql
);
$i
++
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/notify.class.php
+
9
−
7
View file @
12932537
<?php
/* Copyright (C) 2003
Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2003
-2005
Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -21,14 +21,16 @@
*
*/
/** \file htdocs/notify.class.php
\brief Fichier de la classe de gestion des notifications
\version $Revision$
/**
\file htdocs/notify.class.php
\brief Fichier de la classe de gestion des notifications
\version $Revision$
*/
/** \class Notify
\brief Classe de gestion des notifications
/**
\class Notify
\brief Classe de gestion des notifications
*/
class
Notify
...
...
@@ -96,7 +98,7 @@ class Notify
$sql
=
"INSERT INTO "
.
MAIN_DB_PREFIX
.
"notify (daten, fk_action, fk_contact, objet_type, objet_id)"
;
$sql
.
=
" VALUES (now(),
$action
,
$obj->idp
, '
$objet_type
',
$objet_id
);"
;
$db2
=
$this
->
db
->
clone
();
$db2
=
$this
->
db
->
db
clone
();
if
(
!
$db2
->
query
(
$sql
)
)
{
print
$db2
->
error
();
...
...
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