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
b305ab4b
Commit
b305ab4b
authored
15 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Creation of a task
parent
48f100c0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/projet/index.php
+8
-9
8 additions, 9 deletions
htdocs/projet/index.php
htdocs/projet/tasks/fiche.php
+9
-3
9 additions, 3 deletions
htdocs/projet/tasks/fiche.php
with
17 additions
and
12 deletions
htdocs/projet/index.php
+
8
−
9
View file @
b305ab4b
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-200
9
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-20
1
0 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2010 Regis Houssin <regis@dolibarr.fr>
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -21,20 +21,19 @@
/**
* \file htdocs/projet/index.php
* \ingroup projet
* \brief
Page d'accueil du module projet
* \brief
Main project home page
* \version $Id$
*/
require
(
"./pre.inc.php"
);
$langs
->
load
(
"projects"
);
if
(
!
$user
->
rights
->
projet
->
lire
)
accessforbidden
();
// Security check
if
(
$user
->
societe_id
>
0
)
{
$socid
=
$user
->
societe_id
;
}
if
(
!
$user
->
rights
->
projet
->
lire
)
accessforbidden
();
/*
...
...
@@ -118,7 +117,7 @@ print '</td><td width="70%" valign="top" class="notopnoleft">';
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
print_liste_field_titre
(
$langs
->
trans
(
"
Company
"
),
"index.php"
,
"s.nom"
,
""
,
""
,
""
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"
ThirdParties
"
),
"index.php"
,
"s.nom"
,
""
,
""
,
""
,
$sortfield
,
$sortorder
);
print_liste_field_titre
(
$langs
->
trans
(
"NbOfProjects"
),
""
,
""
,
""
,
""
,
'align="right"'
,
$sortfield
,
$sortorder
);
print
"</tr>
\n
"
;
...
...
@@ -152,7 +151,7 @@ if ( $resql )
}
else
{
print
$langs
->
trans
(
"
Public
"
);
print
$langs
->
trans
(
"
OthersNotLinkedToThirdParty
"
);
}
print
'</td>'
;
print
'<td align="right"><a href="'
.
DOL_URL_ROOT
.
'/projet/liste.php?socid='
.
$obj
->
socid
.
'">'
.
$obj
->
nb
.
'</a></td>'
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/projet/tasks/fiche.php
+
9
−
3
View file @
b305ab4b
...
...
@@ -57,6 +57,12 @@ if ($_POST["action"] == 'createtask' && $user->rights->projet->creer)
$_GET
[
"action"
]
=
'create'
;
$error
++
;
}
else
if
(
empty
(
$_POST
[
'task_parent'
]))
{
$mesg
=
$langs
->
trans
(
"ErrorFieldRequired"
,
$langs
->
transnoentities
(
"ChildOfTask"
));
$_GET
[
"action"
]
=
'create'
;
$error
++
;
}
if
(
!
$error
)
{
...
...
@@ -139,12 +145,12 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer && (empty($proje
print
'<table class="border" width="100%">'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Label"
)
.
'</td><td>'
;
print
'<tr><td
class="fieldrequired"
>'
.
$langs
->
trans
(
"Label"
)
.
'</td><td>'
;
print
'<input type="text" size="25" name="label" class="flat" value="'
.
$_POST
[
"label"
]
.
'">'
;
print
'</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"ChildOfTask"
)
.
'</td><td>'
;
print
$formother
->
selectProjectTasks
(
''
,
$projectid
,
'task_parent'
,
0
,
0
,
1
);
print
'<tr><td
class="fieldrequired"
>'
.
$langs
->
trans
(
"ChildOfTask"
)
.
'</td><td>'
;
print
$formother
->
selectProjectTasks
(
''
,
$projectid
,
'task_parent'
,
0
,
0
,
1
,
1
);
print
'</td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"AffectedTo"
)
.
'</td><td>'
;
...
...
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