Skip to content

Commit

Permalink
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
eldy committed May 22, 2019
2 parents 4d8aba6 + 45e6c14 commit 2162f48
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 30 deletions.
2 changes: 1 addition & 1 deletion htdocs/accountancy/class/accountancyexport.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ public function exportOpenConcerto($objectLines)
$date = dol_print_date($line->doc_date, '%d/%m/%Y');

print $date . $separator;
print $line->code_journal;
print $line->code_journal . $separator;
if (empty($line->subledger_account)) {
print length_accountg($line->numero_compte) . $separator;
} else {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/adherents/agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
print '<div class="underbanner clearboth"></div>';

$object->info($id);
print dol_print_object_info($object, 1);
dol_print_object_info($object, 1);

print '</div>';

Expand Down
12 changes: 7 additions & 5 deletions htdocs/adherents/class/adherent_type.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class AdherentType extends CommonObject
* @var string Adherent type label
*/
public $label;

/**
* @var string Adherent type nature
*/
Expand Down Expand Up @@ -410,7 +410,7 @@ public function listMembersForMemberType($excludefilter = '', $mode = 0)
return -1;
}
}

/**
* Return translated label by the nature of a adherent (physical or moral)
*
Expand All @@ -422,7 +422,7 @@ public function getmorphylib($morphy = '')
global $langs;
if ($morphy == 'phy') { return $langs->trans("Physical"); }
elseif ($morphy == 'mor') { return $langs->trans("Moral"); }
else return $langs->trans("Physical & Morale");
else return $langs->trans("Physical & Morale");
//return $morphy;
}

Expand Down Expand Up @@ -463,6 +463,7 @@ public function getLibStatut()
}

// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
/**
* Retourne chaine DN complete dans l'annuaire LDAP pour l'objet
*
Expand All @@ -472,7 +473,7 @@ public function getLibStatut()
* 2=Return key only (uid=qqq)
* @return string DN
*/
private function _load_ldap_dn($info, $mode = 0)
public function _load_ldap_dn($info, $mode = 0)
{
// phpcs:enable
global $conf;
Expand All @@ -485,12 +486,13 @@ private function _load_ldap_dn($info, $mode = 0)


// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
/**
* Initialize the info array (array of LDAP values) that will be used to call LDAP functions
*
* @return array Tableau info des attributs
*/
private function _load_ldap_info()
public function _load_ldap_info()
{
// phpcs:enable
global $conf,$langs;
Expand Down
21 changes: 4 additions & 17 deletions htdocs/bom/bom_agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,12 @@
*/

// Load Dolibarr environment
$res=0;
// Try main.inc.php into web root known defined into CONTEXT_DOCUMENT_ROOT (not always defined)
if (! $res && ! empty($_SERVER["CONTEXT_DOCUMENT_ROOT"])) $res=@include $_SERVER["CONTEXT_DOCUMENT_ROOT"]."/main.inc.php";
// Try main.inc.php into web root detected using web root calculated from SCRIPT_FILENAME
$tmp=empty($_SERVER['SCRIPT_FILENAME'])?'':$_SERVER['SCRIPT_FILENAME'];$tmp2=realpath(__FILE__); $i=strlen($tmp)-1; $j=strlen($tmp2)-1;
while($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i]==$tmp2[$j]) { $i--; $j--; }
if (! $res && $i > 0 && file_exists(substr($tmp, 0, ($i+1))."/main.inc.php")) $res=@include substr($tmp, 0, ($i+1))."/main.inc.php";
if (! $res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i+1)))."/main.inc.php")) $res=@include dirname(substr($tmp, 0, ($i+1)))."/main.inc.php";
// Try main.inc.php using relative path
if (! $res && file_exists("../main.inc.php")) $res=@include "../main.inc.php";
if (! $res && file_exists("../../main.inc.php")) $res=@include "../../main.inc.php";
if (! $res && file_exists("../../../main.inc.php")) $res=@include "../../../main.inc.php";
if (! $res) die("Include of main fails");

require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
dol_include_once('/bom/class/bom.class.php');
dol_include_once('/bom/lib/bom.lib.php');
require_once DOL_DOCUMENT_ROOT.'/bom/class/bom.class.php';
require_once DOL_DOCUMENT_ROOT.'/bom/lib/bom.lib.php';


// Load translation files required by the page
Expand Down Expand Up @@ -196,7 +183,7 @@
print '<div class="underbanner clearboth"></div>';

$object->info($object->id);
print dol_print_object_info($object, 1);
dol_print_object_info($object, 1);

print '</div>';

Expand Down
2 changes: 1 addition & 1 deletion htdocs/comm/propal/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@
print '<tr>';
print '<td>' . $langs->trans("Project") . '</td><td>';
$numprojet = $formproject->select_projects(($soc->id > 0 ? $soc->id : -1), $projectid, 'projectid', 0, 0, 1, 1);
print ' &nbsp; <a href="'.DOL_URL_ROOT.'/projet/card.php?socid=' . $soc->id . '&action=create&status=1&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create&socid='.$soc->id).'"><span class="valignmiddle text-plus-circle">' . $langs->trans("AddProject") . '</span><span class="fa fa-plus-circle valignmiddle"></span></a>';
print ' &nbsp; <a href="'.DOL_URL_ROOT.'/projet/card.php?socid=' . $soc->id . '&action=create&status=1&backtopage='.urlencode($_SERVER["PHP_SELF"].'?action=create&socid='.$soc->id).'"><span class="valignmiddle text-plus-circle">' . $langs->trans("AddProject") . '</span><span class="fa fa-plus-circle valignmiddle paddingleft"></span></a>';
print '</td>';
print '</tr>';
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/contact/agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
print '<div class="underbanner clearboth"></div>';

$object->info($id);
print dol_print_object_info($object, 1);
dol_print_object_info($object, 1);

print '</div>';

Expand Down
2 changes: 1 addition & 1 deletion htdocs/modulebuilder/template/myobject_agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
print '<div class="underbanner clearboth"></div>';

$object->info($object->id);
print dol_print_object_info($object, 1);
dol_print_object_info($object, 1);

print '</div>';

Expand Down
3 changes: 2 additions & 1 deletion htdocs/modulebuilder/template/myobject_card.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ function init_myfunc()

if (! empty($object->lines))
{
$ret = $object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
// printObjectLines return void
$object->printObjectLines($action, $mysoc, $soc, $lineid, 1);
}

// Form to add new line
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
print '<div class="underbanner clearboth"></div>';

$object->info($object->id);
print dol_print_object_info($object, 1);
dol_print_object_info($object, 1);

print '</div>';

Expand Down
2 changes: 1 addition & 1 deletion htdocs/societe/agenda.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
print '<div class="underbanner clearboth"></div>';

$object->info($socid);
print dol_print_object_info($object, 1);
dol_print_object_info($object, 1);

print '</div>';

Expand Down

0 comments on commit 2162f48

Please sign in to comment.