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
1be389fd
Commit
1be389fd
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
FIX deletion of bank tag
parent
10838983
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/bank/class/bankcateg.class.php
+14
-1
14 additions, 1 deletion
htdocs/compta/bank/class/bankcateg.class.php
with
14 additions
and
1 deletion
htdocs/compta/bank/class/bankcateg.class.php
+
14
−
1
View file @
1be389fd
...
...
@@ -202,7 +202,6 @@ class BankCateg // extends CommonObject
// Delete link between tag and bank account
if
(
!
$error
)
{
//$sql = "DELETE FROM ".MAIN_DB_PREFIX."bank_class"; // No more used
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"categorie_account"
;
$sql
.
=
" WHERE fk_categorie = "
.
$this
->
id
;
...
...
@@ -214,6 +213,20 @@ class BankCateg // extends CommonObject
}
}
// Delete link between tag and bank lines
if
(
!
$error
)
{
$sql
=
"DELETE FROM "
.
MAIN_DB_PREFIX
.
"bank_class"
;
// No more used
$sql
.
=
" WHERE fk_categ = "
.
$this
->
id
;
$resql
=
$this
->
db
->
query
(
$sql
);
if
(
!
$resql
)
{
$error
++
;
$this
->
errors
[]
=
"Error "
.
$this
->
db
->
lasterror
();
}
}
// Delete bank categ
if
(
!
$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