Skip Navigation

[Gelöst] Views: "Data not saved" when one specific line is present.

This support ticket is created vor 7 Jahre, 12 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 5 Antworten, has 2 Stimmen.

Last updated by Adriano vor 7 Jahre, 12 Monate.

Assigned support staff: Adriano.

Author
Artikel
#281221

I am trying to:

Edit an existing view that is functional on the front end. Even if I only add a space I get "Data not saved" when I click Update.

If I take the following line out it will save.

<div class="drawer-wrapper drawer-full section drawer-[wpv-post-slug]" style="background: #000 url([wpv-post-featured-image size="full" raw="true"]); background-size: cover; background-repeat: no-repeat; background-position: center;" id="id-[wpv-post-slug]">

The entirety of the layout is:

[wpv-layout-start]
  [wpv-items-found]
<div id="fullpage">
  <!-- wpv-loop-start -->
  <wpv-loop>

    [wpv-if arg_1="wpcf-drawer-layout" evaluate="$arg_1 = '1'"]
    <div class="drawer-wrapper drawer-slash section drawer-[wpv-post-slug]" style="background: #000 url([wpv-post-featured-image size="full" raw="true"]); background-size: cover; background-repeat: no-repeat; background-position: center;" data-anchor="[wpv-post-slug]" id="id-[wpv-post-slug]">
      <div class="container drawer">
        <div class="row" >
          <div class="col-md-6">
            <div class="drawer-copy">[wpv-post-body view_template="None"]</div>
          </div>
        </div>
      </div>
    </div>
    [/wpv-if]
    
    [wpv-if arg_1="wpcf-drawer-layout" evaluate="$arg_1 = '2'"]
    <div class="drawer-wrapper drawer-full section drawer-[wpv-post-slug]" style="background: #000 url([wpv-post-featured-image size="full" raw="true"]); background-size: cover; background-repeat: no-repeat; background-position: center;" id="id-[wpv-post-slug]">
      <div class="container drawer">
        <div class="row" >
          <div class="col-md-12">
            <div class="drawer-copy">[wpv-post-body view_template="None"]</div>
          </div>
        </div>
      </div>
    </div>
    [/wpv-if]
    
  </wpv-loop>
  <!-- wpv-loop-end -->
</div>
  [/wpv-items-found]
  [wpv-no-items-found]
  [wpml-string context="wpv-views"]<strong>No items found</strong>[/wpml-string]
  [/wpv-no-items-found]
[wpv-layout-end]

I expect Views to store my functional code. I would also expect it to store garbage code.

#281263

Hi Chris,

I've tested on latest Views and it works fine which means that it should be fixed in the next release, next monday. I'd recommend you to wait for this. My apologies for this inconvenience.

Please let me know if you are satisfied with my reply and any other questions you may have.

Regards,

Adriano Ferreira

#281273

Could I get a copy of the current build please. I was supposed to have a client review yesterday. This is just a staging server.

#281282

Hi Chris,

Of course! Just sent by email.

#281312

The new version did solve that issue. Thanks!

#281313

Glad to hear that. You are welcome.