mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
Fix arguments to dol_get_fiche_head
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2021 Dorian Vabre <dorian.vabre@gmail.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -278,7 +279,7 @@ if (empty($reshook) && $action == 'add') {
|
||||
}
|
||||
$thirdparty->code_client = $tmpcode;
|
||||
$readythirdparty = $thirdparty->create($user);
|
||||
if ($readythirdparty <0) {
|
||||
if ($readythirdparty < 0) {
|
||||
$error++;
|
||||
$errmsg .= $thirdparty->error;
|
||||
$errors = array_merge($errors, $thirdparty->errors);
|
||||
@@ -291,7 +292,7 @@ if (empty($reshook) && $action == 'add') {
|
||||
if (!$error) {
|
||||
$contact = new Contact($db);
|
||||
$resultcontact = $contact->fetch('', '', '', $email);
|
||||
if ($resultcontact<=0) {
|
||||
if ($resultcontact <= 0) {
|
||||
// Need to create a contact
|
||||
$contact->socid = $thirdparty->id;
|
||||
$contact->lastname = (string) GETPOST("lastname", 'alpha');
|
||||
@@ -305,7 +306,7 @@ if (empty($reshook) && $action == 'add') {
|
||||
$contact->statut = 1; //Default status to Actif
|
||||
|
||||
$resultcreatecontact = $contact->create($user);
|
||||
if ($resultcreatecontact<0) {
|
||||
if ($resultcreatecontact < 0) {
|
||||
$error++;
|
||||
$errmsg .= $contact->error;
|
||||
}
|
||||
@@ -318,7 +319,7 @@ if (empty($reshook) && $action == 'add') {
|
||||
|
||||
$resultcategory = $category->fetch(getDolGlobalString('EVENTORGANIZATION_CATEG_THIRDPARTY_BOOTH'));
|
||||
|
||||
if ($resultcategory<=0) {
|
||||
if ($resultcategory <= 0) {
|
||||
$error++;
|
||||
$errmsg .= $category->error;
|
||||
} else {
|
||||
@@ -403,13 +404,13 @@ if (empty($reshook) && $action == 'add') {
|
||||
} else {
|
||||
$resultconforbooth = $conforbooth->create($user);
|
||||
}
|
||||
if ($resultconforbooth<=0) {
|
||||
if ($resultconforbooth <= 0) {
|
||||
$error++;
|
||||
$errmsg .= $conforbooth->error;
|
||||
} else {
|
||||
// Adding the contact to the project
|
||||
$resultaddcontact = $conforbooth->add_contact($contact->id, 'RESPONSIBLE');
|
||||
if ($resultaddcontact<0) {
|
||||
if ($resultaddcontact < 0) {
|
||||
$error++;
|
||||
$errmsg .= $conforbooth->error;
|
||||
} else {
|
||||
@@ -621,7 +622,7 @@ print '<input type="hidden" name="securekey" value="'.$securekeyreceived.'" />';
|
||||
print '<br><span class="opacitymedium">'.$langs->trans("FieldsWithAreMandatory", '*').'</span><br>';
|
||||
//print $langs->trans("FieldsWithIsForPublic",'**').'<br>';
|
||||
|
||||
print dol_get_fiche_head('');
|
||||
print dol_get_fiche_head();
|
||||
|
||||
print '<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
Reference in New Issue
Block a user