fix(share): Return empty string if no label is set#48673
Conversation
|
/backport to stable30 |
provokateurin
left a comment
There was a problem hiding this comment.
Oh then you can actually revert #47551 where I thought this was intended but wrongly documented!
It was already broken before 30 as well, so please backport to 29 and 28 as well.
I am not sure. The PHP documentation is only stating strings, but the DB accepts null. I personally think |
|
I thought some DB will treat null and empty string the same anyway and so we cannot differentiate in DB, no? |
|
Yeah, Oracle treats empty strings as NULL. |
* Resolves: #48629 While the database supports NULL, the typing has always said it only returns *string*. So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This reverts commit 01c4fa3. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
cee1ad5 to
64dd4ce
Compare
Done |
|
/backport to stable29 |
|
@susnux not 28? |
|
/backport to stable28 |
Summary
While the database supports NULL, the typing has always said it only returns string. So to not break any apps that might trust the typings we should return
''if the database is set toNULL.Checklist