Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create expense report from user card #8984

Closed
SylvainLegrand opened this issue Jun 18, 2018 · 0 comments
Closed

Can't create expense report from user card #8984

SylvainLegrand opened this issue Jun 18, 2018 · 0 comments

Comments

@SylvainLegrand
Copy link
Contributor

Bug

Expense creation doesn't work from expense tab on user card

Environment

  • Version: 7.0.2
  • OS: Windows 10 1803 (Wamp) and Unbuntu 16.04LTS
  • Web server: Apache 2.4.32
  • PHP: 7.2.6
  • Database: MariaDB 10.3.7

Expected and actual behavior

On user card go to the expense tab, click to create a new expense report generate a bug instead of view the expense report card on creation mode.

Steps to correct the behavior

file ../htdocs/expensereport/list.php => line 450
Change : print '<a href="'.DOL_URL_ROOT.'/expensereport/card.php?action=request&id='.$user_id.'" class="butAction">'.$langs->trans("AddTrip").'</a>';
by : print '<a href="'.DOL_URL_ROOT.'/expensereport/card.php?action=create" class="butAction">'.$langs->trans("AddTrip").'</a>';

[Attached files]

Corrected file : list.zip

Greetings,
Sylvain Legrand.

@eldy eldy closed this as completed in c33aaa0 Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant