Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
0b487ef7d9
@ -48,7 +48,7 @@ $thirdpartytmp = new Societe($db);
|
|||||||
$modBarCodeProduct = '';
|
$modBarCodeProduct = '';
|
||||||
$modBarCodeThirdparty = '';
|
$modBarCodeThirdparty = '';
|
||||||
|
|
||||||
$maxperinit = 1000;
|
$maxperinit = empty($conf->global->BARCODE_INIT_MAX) ? 1000 : $conf->global->BARCODE_INIT_MAX;
|
||||||
|
|
||||||
// Security check (enable the most restrictive one)
|
// Security check (enable the most restrictive one)
|
||||||
//if ($user->socid > 0) accessforbidden();
|
//if ($user->socid > 0) accessforbidden();
|
||||||
|
|||||||
@ -374,7 +374,7 @@ if ($cats < 0) {
|
|||||||
dol_print_error($db, $object->error, $object->errors);
|
dol_print_error($db, $object->error, $object->errors);
|
||||||
} elseif (count($cats) < 1) {
|
} elseif (count($cats) < 1) {
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td colspan="3" class="opacitymedium">'.$langs->trans("NoSubCat").'</td>';
|
print '<td colspan="3"><span class="opacitymedium">'.$langs->trans("NoSubCat").'</span></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
} else {
|
} else {
|
||||||
$categstatic = new Categorie($db);
|
$categstatic = new Categorie($db);
|
||||||
@ -461,7 +461,7 @@ if ($cats < 0) {
|
|||||||
|
|
||||||
print '<tr class="nobordernopadding">';
|
print '<tr class="nobordernopadding">';
|
||||||
print '<td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>';
|
print '<td>'.img_picto_common('', 'treemenu/branchbottom.gif').'</td>';
|
||||||
print '<td valign="middle">'.$langs->trans("NoCategoryYet").'</td>';
|
print '<td class="valignmiddle">'.$langs->trans("NoCategoryYet").'</td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
@ -146,9 +146,10 @@ class FormTicket
|
|||||||
* @param string $mode Mode ('create' or 'edit')
|
* @param string $mode Mode ('create' or 'edit')
|
||||||
* @param int $public 1=If we show the form for the public interface
|
* @param int $public 1=If we show the form for the public interface
|
||||||
* @param Contact|null $with_contact [=NULL] Contact to link to this ticket if exists
|
* @param Contact|null $with_contact [=NULL] Contact to link to this ticket if exists
|
||||||
|
* @param string $action [=''] Action in card
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function showForm($withdolfichehead = 0, $mode = 'edit', $public = 0, Contact $with_contact = null)
|
public function showForm($withdolfichehead = 0, $mode = 'edit', $public = 0, Contact $with_contact = null, $action = '')
|
||||||
{
|
{
|
||||||
global $conf, $langs, $user, $hookmanager;
|
global $conf, $langs, $user, $hookmanager;
|
||||||
|
|
||||||
@ -636,7 +637,7 @@ class FormTicket
|
|||||||
|
|
||||||
// Other attributes
|
// Other attributes
|
||||||
$parameters = array();
|
$parameters = array();
|
||||||
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $ticketstat, $this->action); // Note that $action and $object may have been modified by hook
|
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $ticketstat, $action); // Note that $action and $object may have been modified by hook
|
||||||
if (empty($reshook)) {
|
if (empty($reshook)) {
|
||||||
print $ticketstat->showOptionals($extrafields, 'create');
|
print $ticketstat->showOptionals($extrafields, 'create');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -739,7 +739,7 @@ if ($action == 'create' || $action == 'presend') {
|
|||||||
|
|
||||||
$formticket->withcancel = 1;
|
$formticket->withcancel = 1;
|
||||||
|
|
||||||
$formticket->showForm(1, 'create', 0);
|
$formticket->showForm(1, 'create', 0, null, $action);
|
||||||
/*} elseif ($action == 'edit' && $user->rights->ticket->write && $object->status < Ticket::STATUS_CLOSED) {
|
/*} elseif ($action == 'edit' && $user->rights->ticket->write && $object->status < Ticket::STATUS_CLOSED) {
|
||||||
$formticket = new FormTicket($db);
|
$formticket = new FormTicket($db);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user