Loading

Edit customer data

General Discussion around Collabtive

Edit customer data

Postby Remiguel » 04.11.2014, 18:09

In a previous post I've describded, the modification to change customer assignation of a project. In the same time, I realized that users couldn't edit customer data after creation.
To allow users to edit customer data afterward (phones number, eMail adress Name etc..) modifications are very little:

In admincustomers.tpl template
Write
Code: Select all
{if $userpermissions.projects.edit}

instead of
Code: Select all
{if $userpermissions.customer.edit}


In managecompany.php
in both function editform & edit, write
Code: Select all
!$userpermissions["projects"]["edit"]

instead of
Code: Select all
!$userpermissions["customer"]["edit"]


Only in editform function, write
Code: Select all
$thiscustomer = $customer->getCompany($id);

instead of
Code: Select all
$thiscustomer = $customer->getCustomer($id);


In editcustomer.tpl template
in the line
Code: Select all
<form novalidate class="main" method="post" action="managecustomer.php?action=edit&amp;id={$customer.ID}" {literal}onsubmit="return validateCompleteForm(this,'input_error');"{/literal}>

change managecustomer.php with managecompany.php
Remiguel
 
Posts: 96
Joined: 10.06.2014, 09:34
Location: Spain / France

Return to General

Who is online

Users browsing this forum: No registered users

cron