Steps to reproduce:
(using Lightning 1.03, Drupal 8.1.8 with all lightning features enabled)

  1. Create a landing page. Save as Draft.
  2. Click the Manage Content IPE button
  3. Click Create Content
  4. Select the Basic Block, enter the title and body and Place it in the main region.
  5. Click Save, then Save as Custom
  6. Block should show on page as expected.
  7. Now, click Edit Draft
  8. Save as Draft. No need to change anything
  9. Notice that the block is gone!!

You can go to Revisions and Revert to the previous revision to restore the previous blocks. But basically it seems that the custom layout/blocks of the page are not being transferred to the new revision that is created.

This is a pretty serious issue for users of the workflow and layout system, but not marking it as Major because not everybody is using this combination of features.

Comments

mpotter created an issue. See original summary.

ptsimard’s picture

Priority: Normal » Major
StatusFileSize
new6 KB

I must report that I just ran into this exact problem. Now I'm unable to Publish the latest draft. This makes Landing page unusable.

When on this tab the IPE shows and I can edit/save with it

But there is no way on this page to set moderation to publish. So if you can't change it from that page, what do you do? You go to the edit draft page and change the moderation state.

But this does not work, it loses your changes and the whole panelized stuff is gone.

I'm setting this to Major, but really it should beCritical because it makes a cornerstone of Lightning distribution (the concept of Landing pages as nodes) totally unusable.

I will work around them now by building one-off pages via Block layout visibility rules instead for now.

If I'm doing something wrong (with my drupal config) please let me know.

ptsimard’s picture

balsama’s picture

StatusFileSize
new14.17 MB

Interesting. I couldn't reproduce this with HEAD of Lightning. Trying 1.03 now.

HEAD - cannot reproduce

balsama’s picture

We must be missing something in the STR (or I misread). mpotter/ptsimard, can you confirm the steps?

We can add a test for this, but let's see if there isn't a real bug we should be testing and fixing first.

mpotter’s picture

I tracked down the difference between my test and the one shown in #4.

In my test, when initially creating the landing page, I selected "Single Column" in the Full Content dropdown menu. After adding the custom block and clicking Edit, this field stays at the Single Column setting.

Whereas in the working test in #4, you used the "Current default display" for the Full Content and after adding the custom block and clicking Edit draft, it updated the Full content field to show "Custom Override".

When you initially select a Full Content value other than "Current default display", the "Custom override" is never available as an option when you edit the node.

ptsimard’s picture

StatusFileSize
new1.82 MB

Here I captured the broken workflow using vanilla lightning 1.03 on simplytest.me

I hope this helps. The gif is wide so to see better you might want to open it in its own tab.

balsama’s picture

Status: Active » Needs work

Thanks everyone. It looks like the cause of this was over in #2664682: Implement admin UI for editing Panelizer defaults.

TODO:

balsama’s picture

Priority: Major » Normal
StatusFileSize
new849 bytes

Here's a patch that should fix the problem as a workaround until we can get this committed. Setting back to normal since we have a workaround.

Note: this patch is against panelizer, not lightning. So make sure to apply it there and not to lightning.

balsama’s picture

Status: Needs work » Needs review
StatusFileSize
new5.9 KB

Patch for lightning including test attached.

balsama’s picture

StatusFileSize
new5.91 KB

Fixed test assertion.

balsama’s picture

StatusFileSize
new5.95 KB

Removed @failing tag from tests which now passes.

balsama’s picture

Status: Needs review » Reviewed & tested by the community

Travis is happy. I'm going to commit this.

balsama credited EclipseGc.

balsama’s picture

  • balsama committed 08d80af on 8.x-1.x
    Issue #2790699 by balsama, EclipseGc: Editing landing page loses custom...
balsama’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.