Skip to content

Commit

Permalink
Merge pull request #547 from ATM-Consulting/fix_sql_error_subtype
Browse files Browse the repository at this point in the history
fix(facture): when updating, subtype should not be trimmed as it is a…
  • Loading branch information
atm-lucasmantegari authored Dec 23, 2024
2 parents fe02bae + 6242a69 commit 000f640
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 2 additions & 0 deletions ChangeLog_Sigrenea.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Backport
- BACKPORT STD #32422 : Removed trim from subtype update facture
4 changes: 1 addition & 3 deletions htdocs/compta/facture/class/facture.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2453,9 +2453,7 @@ public function update(User $user, $notrigger = 0)
if (empty($this->type)) {
$this->type = self::TYPE_STANDARD;
}
if (isset($this->subtype)) {
$this->subtype = trim($this->subtype);
}
// BACKPORT STD #32422 : Removed trim of subtype
if (isset($this->ref)) {
$this->ref = trim($this->ref);
}
Expand Down

0 comments on commit 000f640

Please sign in to comment.