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
f8b133da
Commit
f8b133da
authored
12 years ago
by
Regis Houssin
Browse files
Options
Downloads
Plain Diff
Merge pull request #907 from FHenry/3.3
[ bug #865 ] Dolibarr navigation array in project/task do not work
parents
74abde02
59f218ab
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/projet/class/project.class.php
+2
-0
2 additions, 0 deletions
htdocs/projet/class/project.class.php
htdocs/projet/fiche.php
+12
-10
12 additions, 10 deletions
htdocs/projet/fiche.php
with
14 additions
and
10 deletions
htdocs/projet/class/project.class.php
+
2
−
0
View file @
f8b133da
...
@@ -35,6 +35,7 @@ class Project extends CommonObject
...
@@ -35,6 +35,7 @@ class Project extends CommonObject
public
$table_element
=
'projet'
;
//!< Name of table without prefix where object is stored
public
$table_element
=
'projet'
;
//!< Name of table without prefix where object is stored
public
$table_element_line
=
'projet_task'
;
public
$table_element_line
=
'projet_task'
;
public
$fk_element
=
'fk_projet'
;
public
$fk_element
=
'fk_projet'
;
protected
$ismultientitymanaged
=
1
;
// 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
var
$id
;
var
$id
;
var
$ref
;
var
$ref
;
...
@@ -52,6 +53,7 @@ class Project extends CommonObject
...
@@ -52,6 +53,7 @@ class Project extends CommonObject
var
$statuts
;
var
$statuts
;
var
$oldcopy
;
var
$oldcopy
;
/**
/**
* Constructor
* Constructor
*
*
...
...
This diff is collapsed.
Click to expand it.
htdocs/projet/fiche.php
+
12
−
10
View file @
f8b133da
...
@@ -43,12 +43,6 @@ if ($id == '' && $ref == '' && ($action != "create" && $action != "add" && $acti
...
@@ -43,12 +43,6 @@ if ($id == '' && $ref == '' && ($action != "create" && $action != "add" && $acti
$mine
=
GETPOST
(
'mode'
)
==
'mine'
?
1
:
0
;
$mine
=
GETPOST
(
'mode'
)
==
'mine'
?
1
:
0
;
//if (! $user->rights->projet->all->lire) $mine=1; // Special for projects
//if (! $user->rights->projet->all->lire) $mine=1; // Special for projects
// Security check
$socid
=
0
;
if
(
$user
->
societe_id
>
0
)
$socid
=
$user
->
societe_id
;
$result
=
restrictedArea
(
$user
,
'projet'
,
$id
);
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/hookmanager.class.php'
;
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/hookmanager.class.php'
;
$hookmanager
=
new
HookManager
(
$db
);
$hookmanager
=
new
HookManager
(
$db
);
...
@@ -61,6 +55,11 @@ if ($object->id > 0)
...
@@ -61,6 +55,11 @@ if ($object->id > 0)
$object
->
fetch_thirdparty
();
$object
->
fetch_thirdparty
();
}
}
// Security check
$socid
=
0
;
if
(
$user
->
societe_id
>
0
)
$socid
=
$user
->
societe_id
;
$result
=
restrictedArea
(
$user
,
'projet'
,
$object
->
id
);
$date_start
=
dol_mktime
(
0
,
0
,
0
,
GETPOST
(
'projectmonth'
,
'int'
),
GETPOST
(
'projectday'
,
'int'
),
GETPOST
(
'projectyear'
,
'int'
));
$date_start
=
dol_mktime
(
0
,
0
,
0
,
GETPOST
(
'projectmonth'
,
'int'
),
GETPOST
(
'projectday'
,
'int'
),
GETPOST
(
'projectyear'
,
'int'
));
$date_end
=
dol_mktime
(
0
,
0
,
0
,
GETPOST
(
'projectendmonth'
,
'int'
),
GETPOST
(
'projectendday'
,
'int'
),
GETPOST
(
'projectendyear'
,
'int'
));;
$date_end
=
dol_mktime
(
0
,
0
,
0
,
GETPOST
(
'projectendmonth'
,
'int'
),
GETPOST
(
'projectendday'
,
'int'
),
GETPOST
(
'projectendyear'
,
'int'
));;
...
@@ -720,10 +719,13 @@ else
...
@@ -720,10 +719,13 @@ else
print
'</td><td valign="top" width="50%">'
;
print
'</td><td valign="top" width="50%">'
;
if
(
!
empty
(
$object
->
id
))
{
// List of actions on element
// List of actions on element
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/html.formactions.class.php'
;
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/html.formactions.class.php'
;
$formactions
=
new
FormActions
(
$db
);
$formactions
=
new
FormActions
(
$db
);
$somethingshown
=
$formactions
->
showactions
(
$object
,
'project'
,
$socid
);
$somethingshown
=
$formactions
->
showactions
(
$object
,
'project'
,
$socid
);
}
print
'</td></tr></table>'
;
print
'</td></tr></table>'
;
}
}
...
...
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