Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchCourrier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchCourrier
Commits
dafa7d2a
Commit
dafa7d2a
authored
6 years ago
by
Pegane Nestor
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #7372 every entity columns in template fields
parent
d6dcb0cd
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/templates/datasources/letterbox_attachment.php
+1
-2
1 addition, 2 deletions
modules/templates/datasources/letterbox_attachment.php
with
1 addition
and
2 deletions
modules/templates/datasources/letterbox_attachment.php
+
1
−
2
View file @
dafa7d2a
...
@@ -36,8 +36,7 @@ if (!empty($res_id)) {
...
@@ -36,8 +36,7 @@ if (!empty($res_id)) {
$doc
[
'nature_id'
]
=
$_SESSION
[
'mail_natures'
][
$doc
[
'nature_id'
]];
$doc
[
'nature_id'
]
=
$_SESSION
[
'mail_natures'
][
$doc
[
'nature_id'
]];
//INITIATOR INFO OF DOCUMENT
//INITIATOR INFO OF DOCUMENT
$stmt2
=
$dbDatasource
->
query
(
'SELECT a.entity_id as entity_id, a.entity_label as entity_label, a.parent_entity_id as parent_entity_id,
$stmt2
=
$dbDatasource
->
query
(
'SELECT a.*, b.entity_label as parent_entity_label
b.entity_label as parent_entity_label, a.short_label as short_label, a.email as email, a.entity_type as entity_type, a.entity_path as entity_path
FROM entities as a, entities as b
FROM entities as a, entities as b
WHERE a.entity_id = ?
WHERE a.entity_id = ?
AND a.parent_entity_id = b.entity_id'
,
array
(
$doc
[
'initiator'
]));
AND a.parent_entity_id = b.entity_id'
,
array
(
$doc
[
'initiator'
]));
...
...
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