All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

PT Pill field switches back to default setting after save

Manoj 9 Sep 2011 21:42 problem, complete

I'm using PT Pill field as a Low Variable and when I flip it to 'on' and save it returns back to the default 'off' position. It looks like the value still remains correct in my templates, but it's confusing in the LV admin area since it always shows 'off'.

Replies

  1. Low 12 Sep 2011 12:58

    I take it you mean P&T Switch, not Pill, right?

    What versions of EE, LV and P&T Switch are you using?

  2. Manoj 13 Sep 2011 03:17

    My mistake, P&T Switch.

    I'm on EE v2.2.2, LV 1.37, P&T Field Pack 1.0.3 and P&T Switch 1.0.4.

    Thanks!

  3. Low 14 Sep 2011 08:33

    Okay, I tracked this down to a P&T Switch issue. I'll notify Brandon. In the meantime, here's a quick fix:

    Open up ft.pt_switch.php and replace line 226 with this:

    $new = (! $this->EE->input->get('entry_id') && ! $this->EE->input->get('module'));