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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
70354def
Commit
70354def
authored
Dec 18, 2015
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Disable "main.inc.php" hooks with ajax return
parent
5f4947e3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/core/ajax/row.php
+3
-2
3 additions, 2 deletions
htdocs/core/ajax/row.php
with
3 additions
and
2 deletions
htdocs/core/ajax/row.php
+
3
−
2
View file @
70354def
<?php
/* Copyright (C) 2010-201
2
Regis Houssin <regis.houssin@capnetworks.com>
/* Copyright (C) 2010-201
5
Regis Houssin <regis.houssin@capnetworks.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -20,12 +20,13 @@
* \brief File to return Ajax response on Row move
*/
if
(
!
defined
(
'NOTOKENRENEWAL'
))
define
(
'NOTOKENRENEWAL'
,
'1'
);
// Disable
s
token renewal
if
(
!
defined
(
'NOTOKENRENEWAL'
))
define
(
'NOTOKENRENEWAL'
,
'1'
);
// Disable token renewal
if
(
!
defined
(
'NOREQUIREMENU'
))
define
(
'NOREQUIREMENU'
,
'1'
);
if
(
!
defined
(
'NOREQUIREHTML'
))
define
(
'NOREQUIREHTML'
,
'1'
);
if
(
!
defined
(
'NOREQUIREAJAX'
))
define
(
'NOREQUIREAJAX'
,
'1'
);
if
(
!
defined
(
'NOREQUIRESOC'
))
define
(
'NOREQUIRESOC'
,
'1'
);
if
(
!
defined
(
'NOREQUIRETRAN'
))
define
(
'NOREQUIRETRAN'
,
'1'
);
if
(
!
defined
(
'NOREQUIREHOOK'
))
define
(
'NOREQUIREHOOK'
,
'1'
);
// Disable "main.inc.php" hooks
require
'../../main.inc.php'
;
require_once
DOL_DOCUMENT_ROOT
.
'/core/class/genericobject.class.php'
;
...
...
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