Skip to content

Fix error (stdClass|array) to string conversion in article version history#38273

Merged
roland-d merged 5 commits intojoomla:4.2-devfrom
templaza:4.2-dev
Jul 29, 2022
Merged

Fix error (stdClass|array) to string conversion in article version history#38273
roland-d merged 5 commits intojoomla:4.2-devfrom
templaza:4.2-dev

Conversation

@sonvnn
Copy link
Copy Markdown
Contributor

@sonvnn sonvnn commented Jul 14, 2022

Display (Array | Object) attribs parameters as String in Article Version History

Pull Request for Issue #38261 .

Summary of Changes

Article attribs can contain Array or Object properties, they are not properly displayed in backend Article Version History

Testing Instructions

Install Astroid Framework that sets some article attribs parameters as arrays.

  • Create an article and save it.
  • Click button "Versions".
  • Click a date link to see the overview/preview. Scroll down.

Actual result BEFORE applying this Pull Request

178563271-98fdcdee-8b38-49f6-b033-4cb760dddb47
178563349-54fff5ee-f910-46ef-8ac1-bf1422878cd2

Expected result AFTER applying this Pull Request

Screen Shot 2022-07-14 at 16 32 38

(Array | Object) parameters will display in JSON String format
This pull request will solve issue #38261

Documentation Changes Required

No need

…story

Display (Array | Object) attribs parameters as String in Article Version History
@richard67
Copy link
Copy Markdown
Member

Does this solve issue #38261 ? If so, please mention that in the description of your pull request.

@ReLater
Copy link
Copy Markdown
Contributor

ReLater commented Jul 15, 2022

I have tested this item ✅ successfully on bb4dd6e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38273.

@ReLater
Copy link
Copy Markdown
Contributor

ReLater commented Jul 16, 2022

We have another successful test reported in german Joomla forum but the person doesn't have accounts on GitHub or Joomla issue tracker.

Perhaps you will accept that test anyway?

https://forum.joomla.de/thread/16269-astroid-framework-nutzer-zum-testen-eines-pr-gesucht/?postID=110988#post110988

@richard67
Copy link
Copy Markdown
Member

RTC as there were 2 successful tests reported, just one of them not in the issue tracker.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38273.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 17, 2022
@ghost
Copy link
Copy Markdown

ghost commented Jul 18, 2022

'We have another successful test reported in german Joomla forum but the person doesn't have accounts on GitHub or Joomla issue tracker.'

Now i'm here! :-)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38273.

@chmst
Copy link
Copy Markdown
Contributor

chmst commented Jul 19, 2022

@Elwood-B it is already RTC, no more actions needed for now.

@roland-d roland-d merged commit 78f01df into joomla:4.2-dev Jul 29, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 29, 2022
@roland-d
Copy link
Copy Markdown
Contributor

Thank you

@roland-d roland-d added this to the Joomla! 4.2.0 milestone Jul 29, 2022
brianteeman pushed a commit to brianteeman/joomla-cms that referenced this pull request Aug 2, 2022
…story (joomla#38273)

* Fix error (stdClass|array) to string conversion in article version history

Display (Array | Object) attribs parameters as String in Article Version History

* Fix the code style error.

* Improve the code style.

Co-authored-by: Sonny <sonvnn@gmail.com>
rdeutz pushed a commit to joomla-projects/joomla-cms that referenced this pull request Aug 8, 2022
…story (joomla#38273)

* Fix error (stdClass|array) to string conversion in article version history

Display (Array | Object) attribs parameters as String in Article Version History

* Fix the code style error.

* Improve the code style.

Co-authored-by: Sonny <sonvnn@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants