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

Support archive

P&T Switch not saving correctly in Low Variables

Sean 19 Sep 2012 17:41 problem, rejected

Hi Low, I'm cross-posting this to P&T support (https://getsatisfaction.com/pixelandt...) as I'm not sure if the issue lies with Low Variables or with P &T Switch.

EE 2.5.2 (With MSM)
LV 2.3.0
P&T Switch 1.0.4

So the works fine except that if one makes changes to a different low variable and then saves the variables the switch reverts to the default setting.

When that happens it can be fixed by going to back to the switch variable and setting it as you like. However after saving the switch appears to be in the default position (in the CP) but on the front end is correctly displaying the choice you made.

This site is about to launch and it has been explained to the workaround fix, but clearly this is not an ideal situation.

Please advise.

Replies

  1. Low 20 Sep 2012 08:28

    Looks like a P&T problem. The correct value is set, but the field keeps thinking it is 'new'.

    In ft.pt_switch.php there's this code on line 226:

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


    Since LV doesn't work with entry_ids, it will always think it's new. Better ask Brandon for a fix.