Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr_module_documentstray
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Dolibarr extension
dolibarr_module_documentstray
Commits
d7f5a116
Commit
d7f5a116
authored
7 months ago
by
VESSILLER
Browse files
Options
Downloads
Patches
Plain Diff
FIX fetch WrongParameters on creating ticket (TS2408-10250)
parent
e3dab971
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!39
2024 rc
,
!38
FIX fetch WrongParameters on creating ticket (TS2408-10250)
Pipeline
#3333
passed with warnings
7 months ago
Stage: test
Stage: code_quality
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog.md
+5
-1
5 additions, 1 deletion
ChangeLog.md
VERSION
+1
-1
1 addition, 1 deletion
VERSION
lib/opendsi_common.lib.php
+11
-5
11 additions, 5 deletions
lib/opendsi_common.lib.php
with
17 additions
and
7 deletions
ChangeLog.md
+
5
−
1
View file @
d7f5a116
...
...
@@ -3,6 +3,9 @@ Le format du fichier est basé sur [Tenez un ChangeLog](http://keepachangelog.co
## [Non Distribué]
## [14.0.8] - 02-09-2024
-
Correction de l'erreur fetch WrongParameters lors de la création d'un ticket (TS2408-10250)
## [14.0.7] - 10-06-2024
-
Ajout version PHP.
...
...
@@ -85,7 +88,8 @@ Le format du fichier est basé sur [Tenez un ChangeLog](http://keepachangelog.co
## [7.0.0] - 15-11-2019
-
Version initial.
[
Non Distribué
]:
http://git.open-dsi.fr/dolibarr-extension/documentstray/compare/14.0.7...HEAD
[
Non Distribué
]:
http://git.open-dsi.fr/dolibarr-extension/documentstray/compare/14.0.8...HEAD
[
14.0.8
]:
http://git.open-dsi.fr/dolibarr-extension/documentstray/commits/14.0.8
[
14.0.7
]:
http://git.open-dsi.fr/dolibarr-extension/documentstray/commits/14.0.7
[
14.0.6
]:
http://git.open-dsi.fr/dolibarr-extension/documentstray/commits/14.0.6
[
14.0.5
]:
http://git.open-dsi.fr/dolibarr-extension/documentstray/commits/14.0.5
...
...
This diff is collapsed.
Click to expand it.
VERSION
+
1
−
1
View file @
d7f5a116
14.0.7
\ No newline at end of file
14.0.8
\ No newline at end of file
This diff is collapsed.
Click to expand it.
lib/opendsi_common.lib.php
+
11
−
5
View file @
d7f5a116
...
...
@@ -201,8 +201,12 @@ function opendsi_get_object($db, $element_type, $element_id)
if
(
dol_include_once
(
'/'
.
$element_prop
[
'classpath'
]
.
'/'
.
$element_prop
[
'classfile'
]
.
'.class.php'
))
{
if
(
class_exists
(
$element_prop
[
'classname'
],
false
))
{
$objecttmp
=
new
$element_prop
[
'classname'
](
$db
);
$ret
=
$objecttmp
->
fetch
(
$element_id
);
if
(
$ret
>=
0
)
{
if
(
$element_id
>
0
)
{
$ret
=
$objecttmp
->
fetch
(
$element_id
);
if
(
$ret
>=
0
)
{
return
$objecttmp
;
}
}
else
{
return
$objecttmp
;
}
}
...
...
@@ -274,9 +278,11 @@ function opendsi_get_object($db, $element_type, $element_id)
}
$srcobject
=
new
$classname
(
$db
);
$result
=
$srcobject
->
fetch
(
$element_id
);
if
(
$result
<
0
)
{
return
-
1
;
if
(
$element_id
>
0
)
{
$result
=
$srcobject
->
fetch
(
$element_id
);
if
(
$result
<
0
)
{
return
-
1
;
}
}
return
$srcobject
;
...
...
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