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
0eb12f4c
Commit
0eb12f4c
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix scrutinizer
parent
c8d98dbf
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/opensurvey/class/opensurveysondage.class.php
+13
-17
13 additions, 17 deletions
htdocs/opensurvey/class/opensurveysondage.class.php
with
13 additions
and
17 deletions
htdocs/opensurvey/class/opensurveysondage.class.php
+
13
−
17
View file @
0eb12f4c
...
...
@@ -313,15 +313,12 @@ class Opensurveysondage extends CommonObject
{
if
(
!
$notrigger
)
{
// Uncomment this and change MYOBJECT to your own tag if you
// want this action calls a trigger.
//// Call triggers
//include_once DOL_DOCUMENT_ROOT . '/core/class/interfaces.class.php';
//$interface=new Interfaces($this->db);
//$result=$interface->run_triggers('MYOBJECT_MODIFY',$this,$user,$langs,$conf);
//if ($result < 0) { $error++; $this->errors=$interface->errors; }
//// End call triggers
// Call triggers
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/interfaces.class.php'
;
$interface
=
new
Interfaces
(
$this
->
db
);
$result
=
$interface
->
run_triggers
(
'OPENSURVEY_MODIFY'
,
$this
,
$user
,
$langs
,
$conf
);
if
(
$result
<
0
)
{
$error
++
;
$this
->
errors
=
$interface
->
errors
;
}
// End call triggers
}
}
...
...
@@ -343,17 +340,16 @@ class Opensurveysondage extends CommonObject
}
}
/**
* Delete object in database
*
/**
* Delete object in database
*
* @param User $user User that deletes
* @param int $notrigger 0=launch triggers after, 1=disable triggers
* @param string $numsondage Num sondage admin to delete
* @return int <0 if KO, >0 if OK
*/
function
delete
(
$user
,
$notrigger
,
$numsondage
)
{
* @return int <0 if KO, >0 if OK
*/
function
delete
(
$user
,
$notrigger
,
$numsondage
)
{
global
$conf
,
$langs
;
$error
=
0
;
...
...
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