Merge pull request #1744 from marcosgdf/bug-linkedprojects
Fixed a bug introduced in commit 0916d2cf3b
This commit is contained in:
commit
0bfc90ee9a
@ -217,12 +217,10 @@ foreach ($listofreferent as $key => $value)
|
|||||||
print_titre($langs->trans($title));
|
print_titre($langs->trans($title));
|
||||||
|
|
||||||
$selectList=$formproject->select_element($tablename,$project->societe->id);
|
$selectList=$formproject->select_element($tablename,$project->societe->id);
|
||||||
if ($selectList<0) {
|
|
||||||
|
if (!$selectList || ($selectList<0)) {
|
||||||
setEventMessage($formproject->error,'errors');
|
setEventMessage($formproject->error,'errors');
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if ($selectList)
|
|
||||||
{
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
|
||||||
print '<input type="hidden" name="tablename" value="'.$tablename.'">';
|
print '<input type="hidden" name="tablename" value="'.$tablename.'">';
|
||||||
print '<input type="hidden" name="action" value="addelement">';
|
print '<input type="hidden" name="action" value="addelement">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user