Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
MaarchCourrier
Commits
4702ced6
Commit
4702ced6
authored
Feb 04, 2018
by
Florian Azizian
Browse files
FIX #7032 redirect in basket list
parent
5c800900
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/entities/redirect.php
View file @
4702ced6
...
...
@@ -129,8 +129,9 @@ require_once "apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_
$view
=
$sec
->
retrieve_view_from_coll_id
(
$collId
);
$table
=
$sec
->
retrieve_table_from_coll
(
$collId
);
//retrieve the process entity of document
$aResId
=
explode
(
", "
,
$values_str
);
$stmt
=
$db
->
query
(
"SELECT destination FROM "
.
$table
.
" WHERE res_id in (?)"
,
array
(
$
values_str
)
"SELECT destination FROM "
.
$table
.
" WHERE res_id in (?)"
,
array
(
$
aResId
)
);
$resultDest
=
$stmt
->
fetchObject
();
$destination
=
$resultDest
->
destination
;
...
...
@@ -146,10 +147,8 @@ require_once "apps".DIRECTORY_SEPARATOR.$_SESSION['config']['app_id'].DIRECTORY_
.
$_SESSION
[
'config'
][
'businessappurl'
]
.
'index.php?display=true'
.
'&module=templates&page=templates_ajax_content_for_notes\');document.getElementById(\'notes\').focus();">'
;
$frm_str
.
=
'<option value="">'
.
_SELECT_NOTE_TEMPLATE
.
'</option>'
;
//var_dump($templates);
for
(
$i
=
0
;
$i
<
count
(
$templates
);
$i
++
)
{
if
(
$templates
[
$i
][
'TYPE'
]
==
'TXT'
&&
(
$templates
[
$i
][
'TARGET'
]
==
'notes'
||
$templates
[
$i
][
'TARGET'
]
==
''
))
{
// var_dump($templates[$i]['LABEL']);
$frm_str
.
=
'<option value="'
;
$frm_str
.
=
$templates
[
$i
][
'ID'
];
$frm_str
.
=
'">'
;
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment