Jump to content

[SOLVED] PW thinks changes have been made although none have been made


Recommended Posts

Posted (edited)

I have a few RPB blocks in _main.php. Nowhere else.

When editing HOME and I make no changes, PW warns me about loosing changes all the time. Although no changes have been made.

At first it all worked fine, but somewhere during the last few days, it started.

I disabled RockMigrations and LiveReload temporarily, but no change.

I am not sure how to troubleshoot this...

Edited by Klenkes
Problem solved
  • Like 1
  • Thanks 1
Posted

Thx. This one I have seen myself so it looks I need to fix this. These things are always hard to find as you never know where they are coming from, so a report like this is helpful as it says that it's coming from RockPageBuilder and not another module.

BUT. Could you please provide step-by-step what you are doing and when you are seeing it? Because it does not appear when I'm just editing the homepage and then try to leave! There must be more steps involved?

  • Like 1
  • 1 month later...
Posted

@bernhard Any news on this?

Funny thing... on a new project it only happens when a block is opened(uncollapsed) and then you do a reload.
If you don't open a block the javascript message isn't shown, and everything is okay.

  • 2 weeks later...
Posted

Hey @Klenkes I've just been working on this again, but it's really hard to fix if I'm not able to reproduce ? 

I think the problem could be these lines in InputfieldRockPageBuilder.js:

// make sure to add InputfieldStateChanged immediately after keydown
// we do not intercept form.submit() because that somehow brakes the save process
$(document).on("keydown", ".InputfieldRockPageBuilder input", function (e) {
  $(e.target).closest(".Inputfield").addClass("InputfieldStateChanged");
  RockPageBuilder.changed(e);
});
$(document).on("keydown", ".InputfieldRockPageBuilder textarea", function (e) {
  $(e.target).closest(".Inputfield").addClass("InputfieldStateChanged");
  RockPageBuilder.changed(e);
});

Could you try commenting these out and see if that makes a change?

  • 2 weeks later...
Posted

Hi @Klenkes I've found the issue! Please download v5.3.1 ? 

FYI: The change event was triggered by the widgets field (or whenever more than one RPB field were present on one page in the backend).

Could you please mark the topic as solved? ? 

  • Like 1
Posted

Yeah! It works!
In my case there were 6 RPB fields on one page in the backend.

I'm sorry I couldn't be of much help in finding the culprit...

  • Like 2
  • Klenkes changed the title to [SOLVED] PW thinks changes have been made although none have been made

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...