Skip to content

Commit

Permalink
Fix: Missing vars and bar id.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Feb 4, 2014
1 parent 408a028 commit 0da1a64
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions htdocs/core/tpl/contacts.tpl.php
Expand Up @@ -34,6 +34,9 @@
elseif ($module == 'invoice_supplier') { $permission=$user->rights->fournisseur->facture->creer; }
elseif ($module == 'order_supplier') { $permission=$user->rights->fournisseur->commande->creer; }
elseif ($module == 'project') { $permission=$user->rights->projet->creer; }
elseif ($module == 'action') { $permission=$user->rights->agenda->myactions->create; }
elseif ($module == 'shipping') { $permission=$user->rights->expedition->creer; }
elseif ($module == 'project_task') { $permission=$user->rights->projet->creer; }
elseif (! isset($permission)) { $permission=$user->rights->$module->creer; } // If already defined by caller page

$formcompany= new FormCompany($db);
Expand Down
5 changes: 3 additions & 2 deletions htdocs/projet/tasks/contact.php
Expand Up @@ -283,7 +283,7 @@
print '<input type="hidden" name="action" value="addcontact">';
print '<input type="hidden" name="source" value="internal">';
print '<input type="hidden" name="id" value="'.$id.'">';
print '<input type="hidden" name="withproject" value="'.$withproject.'">';
if ($withproject) print '<input type="hidden" name="withproject" value="'.$withproject.'">';

// Ligne ajout pour contact interne
print "<tr ".$bc[$var].">";
Expand All @@ -299,7 +299,7 @@
print '<td colspan="1">';
// On recupere les id des users deja selectionnes
$contactsofproject=$projectstatic->getListContactId('internal');
$form->select_users($user->id,'contactid',0,'',0,'',$contactsofproject);
$form->select_users($user->id,'userid',0,'',0,'',$contactsofproject);
print '</td>';
print '<td>';
$formcompany->selectTypeContact($object, '', 'type','internal','rowid');
Expand All @@ -317,6 +317,7 @@
print '<input type="hidden" name="action" value="addcontact">';
print '<input type="hidden" name="source" value="external">';
print '<input type="hidden" name="id" value="'.$object->id.'">';
if ($withproject) print '<input type="hidden" name="withproject" value="'.$withproject.'">';

$var=!$var;
print "<tr ".$bc[$var].">";
Expand Down

0 comments on commit 0da1a64

Please sign in to comment.