User tests: Successful: Unsuccessful:
Pull Request for Issue #30995.
Store assets without NULLs.
Create custom table class with assets (property $asset_id
is required) and try to execute parent::store(true)
.
Or just edit libraries/src/Table/Content.php
, replace at the bottom return parent::store($updateNulls);
with return parent::store(true);
to emulate the real case, next try to save an article.
See error.
Save without errors.
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Title |
|
Hmm, but when doing a real test as suggested to emulate the real case, I do not get any error without this PR applied.
@Denitz As I wrote in my previous comments, I think by review that your PR is right. But I can't really reproduce the issue on a current 4.1-dev. I do not get any kind of error without the PR applied and doing the suggested edit of the "libraries/src/Table/Content.php" file. Could you check and report back how you did get an error and which kind of error?
Sorry, can't reproduce as well, too much time has passed :(
Can replicate following this instruction, but get another message.
Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.
BUT .. I could replicate it only once and never again.
This pull requests has automatically rebased to 4.2-dev.
This pull requests has been automatically converted to the PSR-12 coding standard.
Labels |
Added:
?
Maintainers Checked
?
|
Labels |
Added:
?
Removed: ? |
@richard67 Please rebase to 4.3-dev, I don't want to loose your approval after my rebase.
Anybody, please delete this PR if I won't remind about it in 5 years, otherwise it means that I've gone to better place.
Labels |
Added:
?
Removed: ? |
Labels |
Added:
PR-4.3-dev
Removed: ? |
This pull request has been automatically rebased to 4.4-dev.
Title |
|
I have tested this item ✅ successfully on 54ac9e4
I have tested this item ✅ successfully on 54ac9e4
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37993.
What did you do to succesfully get the error message? I am not getting any errors before applying the patch.
I have tested this item ? unsuccessfully on 54ac9e4
Could not replicate the error on saving before applying the patch
@TLWebdesign The testing instructions say that it needs to implement a custom table class to reproduce the issue. That means some programming or some 3rd party extension which does that. Have you done that? If no, then change your test result to "not tested". Thanks in advance.
it also said you could do this approach:
Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.
Thats what i tried.
it also said you could do this approach:
Or just edit libraries/src/Table/Content.php, replace at the bottom return parent::store($updateNulls); with return parent::store(true); to emulate the real case, next try to save an article.
Thats what i tried.
I see. Was reading not far enough.
I have tested this item ✅ successfully on 54ac9e4
I did a codereview and indeed it is false to hand over the $updateNulls here to the asset table object. So this can be merged by codereview.
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
PBF
bug
Small
PR-4.4-dev
Removed: PR-4.3-dev ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-02-26 15:33:06 |
Closed_By | ⇒ | MacJoom |
Thank you!
By review I can confirm that this PR here fixes it in the right way like we already have it at other places where we store assets: