TheCadien / SuluNewsBundle

Simple News Bundle for Sulu 2 CMS
MIT License
14 stars 12 forks source link

News Preview not updating after first preview is generated #22

Closed abitofBaileys closed 2 years ago

abitofBaileys commented 2 years ago

Version: dev-master SULU Version: 2.3.x-dev

Issue

When adding a News item via /admin/#/news/de/add/details and saving it, a preview is generated and displayed in the Preview area as intended, the URL is being changed to /news/de/1/details as intended.

Changing the content of the News does not refresh the Preview area. Manually refreshing it with the Refresh button leaves the content in the Preview area unchanged.

Saving then exiting back to the News List and then editing the News item again will create an updated preview, but subsequent changes are not updated in the Preview area unless the user exits and opens the News item edit view again.

Jupi007 commented 2 years ago

I can confirm the problem.

TheCadien commented 2 years ago

Thanks for Reporting @Rowanism and @Jupi007 , i will take a look , but I am not sure if this is a bundle problem and not more a problem of the Sulu Preview component

TheCadien commented 2 years ago

Just talk to alex from Sulu. @Rowanism, @Jupi007 are you sure that you set your content in the block content ?

This error usually occurs when the content in which the preview was set was not named with the blockt. The preview updates only this Twig block.

The log or the Symfony toolbar may output something.

TheCadien commented 2 years ago

Since the bug is no longer reported by anyone, I am closing the issue for now.