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 Jun 23, 2016
2 parents 91e13d2 + 2988a38 commit 79c3f9f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 9 additions & 9 deletions htdocs/categories/class/categorie.class.php
Expand Up @@ -6,7 +6,7 @@
* Copyright (C) 2006-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2007 Patrick Raguin <patrick.raguin@gmail.com>
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2013-2016 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2016 Charlie Benke <charlie@patas-monkey.com>
Expand Down Expand Up @@ -149,7 +149,7 @@ class Categorie extends CommonObject
*/
var $type;

var $cats=array(); // Tableau en memoire des categories
var $cats=array(); // Categories table in memory
var $motherof=array();

/**
Expand Down Expand Up @@ -232,9 +232,9 @@ function fetch($id,$label='',$type='')
* Add category into database
*
* @param User $user Object user
* @return int -1 : erreur SQL
* -2 : nouvel ID inconnu
* -3 : categorie invalide
* @return int -1 : SQL error
* -2 : new ID unknown
* -3 : Invalid category
* -4 : category already exists
*/
function create($user)
Expand Down Expand Up @@ -304,7 +304,7 @@ function create($user)
$action='create';

// Actions on extra fields (by external module or standard code)
// TODO le hook fait double emploi avec le trigger !!
// TODO the hook duplicates the trigger !!
$hookmanager->initHooks(array('HookModuleNamedao'));
$parameters=array('socid'=>$this->id);
$reshook=$hookmanager->executeHooks('insertExtraFields',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
Expand Down Expand Up @@ -398,7 +398,7 @@ function update($user='')
$action='update';

// Actions on extra fields (by external module or standard code)
// TODO le hook fait double emploi avec le trigger !!
// TODO the hook duplicates the trigger !!
$hookmanager->initHooks(array('HookCategorydao'));
$parameters=array();
$reshook=$hookmanager->executeHooks('insertExtraFields',$parameters,$this,$action); // Note that $action and $object may have been modified by some hooks
Expand Down Expand Up @@ -867,8 +867,8 @@ private function load_motherof()
}

/**
* Reconstruit l'arborescence des categories sous la forme d'un tableau
* Renvoi un tableau de tableau('id','id_mere',...) trie selon arbre et avec:
* Rebuilding the category tree as an array
* Return an array of table('id','id_mere',...) trie selon arbre et avec:
* id = id de la categorie
* id_mere = id de la categorie mere
* id_children = tableau des id enfant
Expand Down
1 change: 1 addition & 0 deletions htdocs/install/mysql/migration/3.9.0-4.0.0.sql
Expand Up @@ -136,6 +136,7 @@ CREATE TABLE llx_website
tms timestamp
) ENGINE=innodb;
ALTER TABLE llx_website ADD COLUMN fk_default_home integer;
ALTER TABLE llx_website CHANGE COLUMN shortname ref varchar(24) NOT NULL;
ALTER TABLE llx_website ADD UNIQUE INDEX uk_website_ref (ref, entity);

CREATE TABLE llx_website_page
Expand Down

0 comments on commit 79c3f9f

Please sign in to comment.