Skip to content

Commit

Permalink
Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Dec 19, 2024
2 parents a6da3b1 + c6afa1a commit 810fd7e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
rev: v4.5.0
hooks:
- id: no-commit-to-branch
args: [--branch, develop, --pattern, \d+.0]
args: [--branch, develop, --pattern, \d+.0$]
- id: check-yaml
args: [--unsafe]
- id: check-json
Expand Down
10 changes: 7 additions & 3 deletions htdocs/core/class/commonobject.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -3998,7 +3998,7 @@ public function fetchObjectLinked($sourceid = null, $sourcetype = '', $targetid
$num = $this->db->num_rows($resql);
$i = 0;
while ($i < $num) {
$obj = $this->db->fetch_object($resql);
$obj = $this->db->fetch_object($resql);

Check failure on line 4001 in htdocs/core/class/commonobject.class.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed
if ($justsource || $justtarget) {
if ($justsource) {
$this->linkedObjectsIds[$obj->targettype][$obj->rowid] = $obj->fk_target;
Expand Down Expand Up @@ -4058,8 +4058,12 @@ public function fetchObjectLinked($sourceid = null, $sourcetype = '', $targetid
$classpath = 'adherents/class';
$module = 'adherent';
} elseif ($objecttype == 'contact') {
$module = 'societe';
}
$module = 'societe';

Check failure on line 4061 in htdocs/core/class/commonobject.class.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed
} elseif ($objecttype == 'action') {

Check failure on line 4062 in htdocs/core/class/commonobject.class.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed
$module = 'agenda';

Check failure on line 4063 in htdocs/core/class/commonobject.class.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed
$subelement = 'actionComm';

Check failure on line 4064 in htdocs/core/class/commonobject.class.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed
}

Check failure on line 4065 in htdocs/core/class/commonobject.class.php

View workflow job for this annotation

GitHub Actions / pre-commit

Tabs must be used to indent lines; spaces are not allowed

// Set classfile
$classfile = strtolower($subelement);
$classname = ucfirst($subelement);
Expand Down

0 comments on commit 810fd7e

Please sign in to comment.