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
154865f5
Commit
154865f5
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix return error when it is not
parent
0df2b4cc
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/societe/class/societe.class.php
+6
-8
6 additions, 8 deletions
htdocs/societe/class/societe.class.php
with
6 additions
and
8 deletions
htdocs/societe/class/societe.class.php
+
6
−
8
View file @
154865f5
...
...
@@ -953,7 +953,7 @@ class Societe extends CommonObject
* @param string $idprof2 Prof id 2 of third party (Warning, this can return several records)
* @param string $idprof3 Prof id 3 of third party (Warning, this can return several records)
* @param string $idprof4 Prof id 4 of third party (Warning, this can return several records)
* @return int >0 if OK, <0 if KO or if two records found for same ref or idprof.
* @return int >0 if OK, <0 if KO or if two records found for same ref or idprof
, 0 if not found
.
*/
function
fetch
(
$rowid
,
$ref
=
''
,
$ref_ext
=
''
,
$ref_int
=
''
,
$idprof1
=
''
,
$idprof2
=
''
,
$idprof3
=
''
,
$idprof4
=
''
)
{
...
...
@@ -1008,7 +1008,7 @@ class Societe extends CommonObject
{
$this
->
error
=
'Fetch several records found for ref='
.
$ref
;
dol_syslog
(
$this
->
error
,
LOG_ERR
);
$result
=
-
1
;
$result
=
-
2
;
}
if
(
$num
)
{
...
...
@@ -1128,17 +1128,15 @@ class Societe extends CommonObject
$this
->
fetch_optionals
(
$this
->
id
,
$extralabels
);
}
else
{
$this
->
error
=
'Fetch no third party found for id='
.
$rowid
;
dol_syslog
(
$this
->
error
,
LOG_ERR
);
$result
=
-
2
;
{
$result
=
0
;
}
$this
->
db
->
free
(
$resql
);
}
else
{
$this
->
error
=
$this
->
db
->
error
();
{
$this
->
error
=
$this
->
db
->
last
error
();
$result
=
-
3
;
}
...
...
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