X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=invoice_add.php;h=61568e2aa32185fd08cfaa6b7966b96a06219b15;hb=a711e76851f29c7e0ac290a279eb4dd984ea7167;hp=ad9c3cfb8cb2693d586d493a6fe97dce78b97909;hpb=926b8d63a0be596b0c95cb55f01addae410af50c;p=timetracker.git diff --git a/invoice_add.php b/invoice_add.php index ad9c3cfb..61568e2a 100644 --- a/invoice_add.php +++ b/invoice_add.php @@ -56,12 +56,12 @@ $form->addInput(array('type'=>'datefield','name'=>'date','size'=>'20','value'=>$ // Dropdown for clients if the clients plugin is enabled. if ($user->isPluginEnabled('cl')) { - $clients = ttTeamHelper::getActiveClients($user->team_id); + $clients = ttTeamHelper::getActiveClients($user->group_id); $form->addInput(array('type'=>'combobox','name'=>'client','style'=>'width: 250px;','data'=>$clients,'datakeys'=>array('id','name'),'value'=>$cl_client,'empty'=>array(''=>$i18n->get('dropdown.select')))); } // Dropdown for projects. if (MODE_PROJECTS == $user->tracking_mode || MODE_PROJECTS_AND_TASKS == $user->tracking_mode) { - $projects = ttTeamHelper::getActiveProjects($user->team_id); + $projects = ttTeamHelper::getActiveProjects($user->group_id); $form->addInput(array('type'=>'combobox','name'=>'project','style'=>'width: 250px;','data'=>$projects,'datakeys'=>array('id','name'),'value'=>$cl_project,'empty'=>array(''=>$i18n->get('dropdown.all')))); } $form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'number','style'=>'width: 250px;','value'=>$cl_number));