Skip to content

Commit 0cae73f

Browse files
authored
fix(User): Error modal generated by “pdffont” field (#479)
* fix(User): Error modal generated by “pdffont” field * CHANGELOG.md
1 parent 7d8d7e3 commit 0cae73f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111

1212
- Use `global` configuration for injection links
1313
- Escape data when check if already exist
14+
- Fix `pdffont` field error for users
1415

1516
## [Unreleased]
1617

inc/commoninjectionlib.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,9 @@ private function unsetValue($itemtype, $field)
927927
**/
928928
private function setValueForItemtype($itemtype, $field, $value, $fromdb = false)
929929
{
930-
930+
if ($itemtype === User::class && $field === "pdffont" && $fromdb) {
931+
return;
932+
}
931933
// TODO awfull hack, text ftom CSV set more than once, so check if "another" value
932934
if (isset($this->values[$itemtype][$field]) && $this->values[$itemtype][$field] != $value) {
933935
// Data set twice (probably CSV + Additional info)

0 commit comments

Comments
 (0)