FIX : create proposal from project
This commit is contained in:
parent
8c63d68083
commit
d38ff5c246
@ -1266,6 +1266,8 @@ if ($action == 'create')
|
|||||||
if ($origin != 'project' && $originid) {
|
if ($origin != 'project' && $originid) {
|
||||||
print '<input type="hidden" name="origin" value="' . $origin . '">';
|
print '<input type="hidden" name="origin" value="' . $origin . '">';
|
||||||
print '<input type="hidden" name="originid" value="' . $originid . '">';
|
print '<input type="hidden" name="originid" value="' . $originid . '">';
|
||||||
|
} elseif ($origin == 'project' && !empty($projectid)) {
|
||||||
|
print '<input type="hidden" name="projectid" value="' . $projectid . '">';
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_fiche_head();
|
dol_fiche_head();
|
||||||
|
|||||||
@ -193,7 +193,7 @@ $listofreferent=array(
|
|||||||
'class'=>'Propal',
|
'class'=>'Propal',
|
||||||
'table'=>'propal',
|
'table'=>'propal',
|
||||||
'datefieldname'=>'datep',
|
'datefieldname'=>'datep',
|
||||||
'urlnew'=>DOL_URL_ROOT.'/comm/propal/card.php?action=create&projectid='.$id.'&socid='.$socid,
|
'urlnew'=>DOL_URL_ROOT.'/comm/propal/card.php?action=create&origin=project&originid='.$id.'&socid='.$socid,
|
||||||
'lang'=>'propal',
|
'lang'=>'propal',
|
||||||
'buttonnew'=>'AddProp',
|
'buttonnew'=>'AddProp',
|
||||||
'testnew'=>$user->rights->propal->creer,
|
'testnew'=>$user->rights->propal->creer,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user