Skip to content

Commit

Permalink
Merge branch '10.0' of git@github.com:Dolibarr/dolibarr.git into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jun 7, 2019
2 parents 58f85ae + 73326cf commit 4c44378
Show file tree
Hide file tree
Showing 100 changed files with 33 additions and 25,102 deletions.
9 changes: 0 additions & 9 deletions htdocs/accountancy/class/bookkeeping.class.php
Expand Up @@ -202,9 +202,6 @@ public function create(User $user, $notrigger = false)
if (isset($this->sens)) {
$this->sens = trim($this->sens);
}
if (isset($this->fk_user_author)) {
$this->fk_user_author = trim($this->fk_user_author);
}
if (isset($this->import_key)) {
$this->import_key = trim($this->import_key);
}
Expand Down Expand Up @@ -522,9 +519,6 @@ public function createStd(User $user, $notrigger = false, $mode = '')
if (isset($this->sens)) {
$this->sens = trim($this->sens);
}
if (isset($this->fk_user_author)) {
$this->fk_user_author = trim($this->fk_user_author);
}
if (isset($this->import_key)) {
$this->import_key = trim($this->import_key);
}
Expand Down Expand Up @@ -1139,9 +1133,6 @@ public function update(User $user, $notrigger = false, $mode = '')
if (isset($this->sens)) {
$this->sens = trim($this->sens);
}
if (isset($this->fk_user_author)) {
$this->fk_user_author = trim($this->fk_user_author);
}
if (isset($this->import_key)) {
$this->import_key = trim($this->import_key);
}
Expand Down
5 changes: 4 additions & 1 deletion htdocs/admin/multicurrency.php
Expand Up @@ -91,7 +91,10 @@
{
if ($currency->fetch($fk_multicurrency) > 0)
{
$currency->updateRate($rate);
$result=$currency->updateRate($rate);
if ($result<0) {
setEventMessages(null, $currency->errors, 'errors');
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/class/commonobject.class.php
Expand Up @@ -6227,6 +6227,7 @@ public function showOutputField($val, $key, $value, $moreparam = '', $keysuffix
$value='';
if (is_array($value_arr) && count($value_arr)>0)
{
$toprint=array();
foreach ($value_arr as $keyval=>$valueval) {
$toprint[]='<li class="select2-search-choice-dolibarr noborderoncategories" style="background: #aaa">'.$param['options'][$valueval].'</li>';
}
Expand Down
29 changes: 12 additions & 17 deletions htdocs/core/class/cstate.class.php
Expand Up @@ -247,25 +247,20 @@ public function update($user = null, $notrigger = 0)
// }
//}

// Commit or rollback
if ($error)
{
foreach($this->errors as $errmsg)
{
dol_syslog(get_class($this)."::update ".$errmsg, LOG_ERR);
$this->error.=($this->error?', '.$errmsg:$errmsg);
}
$this->db->rollback();
return -1*$error;
}
else
{
$this->db->commit();
return 1;
}
// Commit or rollback
if ($error) {
foreach ($this->errors as $errmsg) {
dol_syslog(get_class($this) . "::update " . $errmsg, LOG_ERR);
$this->error .= ($this->error ? ', ' . $errmsg : $errmsg);
}
$this->db->rollback();
return -1 * $error;
} else {
$this->db->commit();
return 1;
}
}


/**
* Delete object in database
*
Expand Down
1 change: 1 addition & 0 deletions htdocs/core/db/mysqli.class.php
Expand Up @@ -684,6 +684,7 @@ public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_key
// ex. : $fields['rowid'] = array('type'=>'int','value'=>'11','null'=>'not null','extra'=> 'auto_increment');
$sql = "CREATE TABLE ".$table."(";
$i=0;
$sqlfields=array();
foreach($fields as $field_name => $field_desc)
{
$sqlfields[$i] = $field_name." ";
Expand Down
Expand Up @@ -582,7 +582,7 @@ public function write_file($object, $outputlangs, $srctemplatepath)
);
complete_substitutions_array($substitutionarray, $langs, $object);
// Call the ODTSubstitution hook
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs,'substitutionarray'=>&$tmparray);
$parameters=array('file'=>$file,'object'=>$object,'outputlangs'=>$outputlangs,'substitutionarray'=>&$substitutionarray);
$reshook=$hookmanager->executeHooks('ODTSubstitution', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks

// Open and load template
Expand Down
3 changes: 2 additions & 1 deletion htdocs/expedition/class/expedition.class.php
Expand Up @@ -1147,9 +1147,10 @@ public function update($user = null, $notrigger = 0)
* Delete shipment.
* Warning, do not delete a shipment if a delivery is linked to (with table llx_element_element)
*
* @param int $notrigger Disable triggers
* @return int >0 if OK, 0 if deletion done but failed to delete files, <0 if KO
*/
public function delete()
public function delete($notrigger = 0)
{
global $conf, $langs, $user;

Expand Down
2 changes: 0 additions & 2 deletions htdocs/install/doctemplates/websites/template/.htaccess

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/blog.php

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/careers.php

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/carriere.php

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/contact.php

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/faq.php

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/footer.php

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/header.php

This file was deleted.

5 changes: 0 additions & 5 deletions htdocs/install/doctemplates/websites/template/home.php

This file was deleted.

9 changes: 0 additions & 9 deletions htdocs/install/doctemplates/websites/template/htmlheader.html

This file was deleted.

11 changes: 0 additions & 11 deletions htdocs/install/doctemplates/websites/template/index.php

This file was deleted.

0 comments on commit 4c44378

Please sign in to comment.