User tests: Successful: Unsuccessful:
Replace str_replace("\n", ' ', print_r($values, 1)) with
json_encode($values, JSON_UNESCAPED_SLASHES) in three JDEBUG-only
debug log statements inside BaseController.
Enable JDEBUG in Joomla configuration.
Trigger actions that call:
Verify log output.
Ensure that:
Debug logs used print_r() combined with str_replace(),
producing verbose and less readable output with unnecessary processing overhead.
Debug logs use json_encode(), producing cleaner, compact, and
more efficient single-line output without extra processing.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
| Labels |
Added:
PR-6.2-dev
|
||
I think the change is OK. In case we need to check the log, we would want to see ID of items currently being edited. I think [132, 133] for example is cleaner and easier to check than Array ( [0] => 123 [1] => 124 )
@Mahesh-Gite-28 Since $values is just an array of integer, any reasons you use json_encode($values, JSON_UNESCAPED_SLASHES) in your case? Personal, I think it just need to be json_encode($values) or even simpler just simple '[' . implode(', ', $values) . ']' (Not a big thing anyway)
Thanks for the suggestion.
You’re right, since $values only contains integer arrays, JSON_UNESCAPED_SLASHES is unnecessary here.
I’ve updated it to use json_encode($values).
Hi
I’ve addressed the review feedback and updated the implementation accordingly.
All checks are passing now.
Could someone please take another look when convenient?
Thanks!
Hi @joomdonation 👋
I’ve addressed the review feedback and updated the implementation accordingly.
All checks are now passing.
Could you please take another look when convenient?
Thanks!
I have tested this item ✅ successfully on 960cde7
I have tested this item ✅ successfully on 960cde7
@Mahesh-Gite-28 Looks good to me. We still need 2nd test and then hopefully the PR will be accepted.
I have tested this item ✅ successfully on 960cde7
I have tested this item ✅ successfully on 960cde7
| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
| Labels |
Added:
RTC
|
||
I have tested this but I dont know if its better or worse or expected
This is the log from opening and saving a module
Before
After