Release 1.20.3 (#3340)

* fix edit timesheet link
* fix drag & drop creates record for wrong user
* fix search with multiple bindings
* hide user switcher in calendar if there is only one user to choose
* make quick entry responsive for mobile-only users
* mark invoices as exported by default
* fix serialization deprecation warning
* fix duration calculation for fixed rate entries
* updated composer packages
* fix checkbox for horizontal forms
* support pdfContext for PDF invoice templates
This commit is contained in:
Kevin Papst
2022-06-11 13:25:50 +02:00
committed by GitHub
parent b46fdcefad
commit f8cb8900d6
19 changed files with 412 additions and 361 deletions

View File

@@ -1046,6 +1046,17 @@ class User implements UserInterface, EquatableInterface, \Serializable
return true;
}
public function __serialize(): array
{
return [
'id' => $this->id,
'username' => $this->username,
'enabled' => $this->enabled,
'email' => $this->email,
'password' => $this->password,
];
}
/**
* {@inheritdoc}
*/
@@ -1060,6 +1071,18 @@ class User implements UserInterface, EquatableInterface, \Serializable
]);
}
public function __unserialize(array $data): void
{
if (!\array_key_exists('id', $data)) {
return;
}
$this->id = $data['id'];
$this->username = $data['username'];
$this->enabled = $data['enabled'];
$this->email = $data['email'];
$this->password = $data['password'];
}
/**
* {@inheritdoc}
*/