Skip to content

Commit

Permalink
Merge pull request #1744 from marcosgdf/bug-linkedprojects
Browse files Browse the repository at this point in the history
Fixed a bug introduced in commit 0916d2c
  • Loading branch information
eldy committed Jul 14, 2014
2 parents 3816e0f + b0ae2fe commit 0bfc90e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions htdocs/projet/element.php
Expand Up @@ -217,12 +217,10 @@
print_titre($langs->trans($title));

$selectList=$formproject->select_element($tablename,$project->societe->id);
if ($selectList<0) {

if (!$selectList || ($selectList<0)) {
setEventMessage($formproject->error,'errors');
}

if ($selectList)
{
} else {
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$projectid.'" method="post">';
print '<input type="hidden" name="tablename" value="'.$tablename.'">';
print '<input type="hidden" name="action" value="addelement">';
Expand Down

0 comments on commit 0bfc90e

Please sign in to comment.