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
898a93b2
Commit
898a93b2
authored
8 years ago
by
Laurent Destailleur
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #5656 from defrance/patch-24
New: Add color of type for url background
parents
fac28f95
f6a7838c
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/comm/action/class/actioncomm.class.php
+7
-2
7 additions, 2 deletions
htdocs/comm/action/class/actioncomm.class.php
htdocs/comm/action/index.php
+3
-1
3 additions, 1 deletion
htdocs/comm/action/index.php
with
10 additions
and
3 deletions
htdocs/comm/action/class/actioncomm.class.php
+
7
−
2
View file @
898a93b2
...
...
@@ -513,7 +513,7 @@ class ActionComm extends CommonObject
$sql
.
=
" a.fk_contact, a.percent as percentage,"
;
$sql
.
=
" a.fk_element, a.elementtype,"
;
$sql
.
=
" a.priority, a.fulldayevent, a.location, a.punctual, a.transparency,"
;
$sql
.
=
" c.id as type_id, c.code as type_code, c.libelle,"
;
$sql
.
=
" c.id as type_id, c.code as type_code, c.libelle,
c.color as type_color,
"
;
$sql
.
=
" s.nom as socname,"
;
$sql
.
=
" u.firstname, u.lastname as lastname"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"actioncomm as a "
;
...
...
@@ -541,6 +541,7 @@ class ActionComm extends CommonObject
// Properties of parent table llx_c_actioncomm (will be deprecated in future)
$this
->
type_id
=
$obj
->
type_id
;
$this
->
type_code
=
$obj
->
type_code
;
$this
->
type_color
=
$obj
->
type_color
;
$transcode
=
$langs
->
trans
(
"Action"
.
$obj
->
type_code
);
$type_libelle
=
(
$transcode
!=
"Action"
.
$obj
->
type_code
?
$transcode
:
$obj
->
libelle
);
$this
->
type
=
$type_libelle
;
...
...
@@ -1109,7 +1110,11 @@ class ActionComm extends CommonObject
if
(
!
empty
(
$this
->
location
))
$tooltip
.
=
'<br><b>'
.
$langs
->
trans
(
'Location'
)
.
':</b> '
.
$this
->
location
;
$linkclose
=
' class="'
.
$classname
.
' classfortooltip" title="'
.
dol_escape_htmltag
(
$tooltip
,
1
)
.
'">'
;
if
(
!
empty
(
$conf
->
global
->
AGENDA_USE_EVENT_TYPE
)
&&
$this
->
type_color
)
$linkclose
=
' style="background-color:#'
.
$this
->
type_color
.
'" class="'
.
$classname
.
' classfortooltip" title="'
.
dol_escape_htmltag
(
$tooltip
,
1
)
.
'">'
;
else
$linkclose
=
' class="'
.
$classname
.
' classfortooltip" title="'
.
dol_escape_htmltag
(
$tooltip
,
1
)
.
'">'
;
if
(
!
is_object
(
$hookmanager
))
{
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/hookmanager.class.php'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/comm/action/index.php
+
3
−
1
View file @
898a93b2
...
...
@@ -440,7 +440,7 @@ $sql.= ' a.percent,';
$sql
.
=
' a.fk_user_author,a.fk_user_action,'
;
$sql
.
=
' a.transparency, a.priority, a.fulldayevent, a.location,'
;
$sql
.
=
' a.fk_soc, a.fk_contact,'
;
$sql
.
=
' ca.code as type_code, ca.libelle as type_label'
;
$sql
.
=
' ca.code as type_code, ca.libelle as type_label
, ca.color as type_color
'
;
$sql
.
=
' FROM '
.
MAIN_DB_PREFIX
.
'c_actioncomm as ca, '
.
MAIN_DB_PREFIX
.
"actioncomm as a"
;
if
(
!
$user
->
rights
->
societe
->
client
->
voir
&&
!
$socid
)
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"societe_commerciaux as sc ON a.fk_soc = sc.fk_soc"
;
// We must filter on resource table
...
...
@@ -531,6 +531,8 @@ if ($resql)
$event
->
type_code
=
$obj
->
type_code
;
$event
->
type_label
=
$obj
->
type_label
;
$event
->
type_color
=
$obj
->
type_color
;
$event
->
libelle
=
$obj
->
label
;
$event
->
percentage
=
$obj
->
percent
;
$event
->
authorid
=
$obj
->
fk_user_author
;
// user id of creator
...
...
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