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
1f5a1038
Commit
1f5a1038
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: use POST instead GET for bypass GET limit
parent
637dca38
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/core/ajax/row.php
+7
-7
7 additions, 7 deletions
htdocs/core/ajax/row.php
htdocs/core/tpl/ajaxrow.tpl.php
+1
-1
1 addition, 1 deletion
htdocs/core/tpl/ajaxrow.tpl.php
with
8 additions
and
8 deletions
htdocs/core/ajax/row.php
+
7
−
7
View file @
1f5a1038
...
...
@@ -40,22 +40,22 @@ top_httphead();
print
'<!-- Ajax page called with url '
.
$_SERVER
[
"PHP_SELF"
]
.
'?'
.
$_SERVER
[
"QUERY_STRING"
]
.
' -->'
.
"
\n
"
;
// Registering the location of boxes
if
((
isset
(
$_
GE
T
[
'roworder'
])
&&
!
empty
(
$_
GE
T
[
'roworder'
]))
&&
(
isset
(
$_
GE
T
[
'table_element_line'
])
&&
!
empty
(
$_
GE
T
[
'table_element_line'
]))
&&
(
isset
(
$_
GE
T
[
'fk_element'
])
&&
!
empty
(
$_
GE
T
[
'fk_element'
]))
&&
(
isset
(
$_
GE
T
[
'element_id'
])
&&
!
empty
(
$_
GE
T
[
'element_id'
]))
)
if
((
isset
(
$_
POS
T
[
'roworder'
])
&&
!
empty
(
$_
POS
T
[
'roworder'
]))
&&
(
isset
(
$_
POS
T
[
'table_element_line'
])
&&
!
empty
(
$_
POS
T
[
'table_element_line'
]))
&&
(
isset
(
$_
POS
T
[
'fk_element'
])
&&
!
empty
(
$_
POS
T
[
'fk_element'
]))
&&
(
isset
(
$_
POS
T
[
'element_id'
])
&&
!
empty
(
$_
POS
T
[
'element_id'
]))
)
{
$roworder
=
explode
(
','
,
$_
GET
[
'roworder'
]
);
$roworder
=
explode
(
','
,
GET
POST
(
'roworder'
,
'alpha'
,
2
)
);
foreach
(
$roworder
as
$value
)
{
if
(
!
empty
(
$value
))
$newroworder
[]
=
$value
;
}
dol_syslog
(
"AjaxRow roworder="
.
$_
GET
[
'roworder'
]
.
" fk_element="
.
$_
GET
[
'fk_element'
]
,
LOG_DEBUG
);
dol_syslog
(
"AjaxRow roworder="
.
GET
POST
(
'roworder'
,
'alpha'
,
2
)
.
" fk_element="
.
GET
POST
(
'fk_element'
,
'int'
,
2
)
,
LOG_DEBUG
);
$row
=
new
GenericObject
(
$db
);
$row
->
table_element_line
=
$_
GET
[
'table_element_line'
]
;
$row
->
fk_element
=
$_
GET
[
'fk_element'
]
;
$row
->
id
=
$_
GET
[
'element_id'
]
;
$row
->
table_element_line
=
GET
POST
(
'table_element_line'
,
'alpha'
,
2
)
;
$row
->
fk_element
=
GET
POST
(
'fk_element'
,
'int'
,
2
)
;
$row
->
id
=
GET
POST
(
'element_id'
,
'int'
,
2
)
;
$result
=
$row
->
line_ajaxorder
(
$newroworder
);
$result
=
$row
->
line_order
(
true
);
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/core/tpl/ajaxrow.tpl.php
+
1
−
1
View file @
1f5a1038
...
...
@@ -36,7 +36,7 @@ $(document).ready(function(){
var
table_element_line
=
"
<?php
echo
$object
->
table_element_line
;
?>
"
;
var
fk_element
=
"
<?php
echo
$object
->
fk_element
;
?>
"
;
var
element_id
=
"
<?php
echo
$object
->
id
;
?>
"
;
$
.
ge
t
(
"
<?php
echo
DOL_URL_ROOT
;
?>
/core/ajax/row.php
"
,
$
.
pos
t
(
"
<?php
echo
DOL_URL_ROOT
;
?>
/core/ajax/row.php
"
,
{
roworder
:
roworder
,
table_element_line
:
table_element_line
,
...
...
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