I have a status group that includes the following statuses open|closed|Active for 2012-2013|Pending Approval|Inactive. My members do not have access to open & closed, but have access to the others. I have a default status set in the Safecracker module.
In my Safecracker template, I have the following conditional:
{if status == "Inactive"}<input name="status" type="hidden" value="Pending Approval"/> {/if}So if an entry’s status is Inactive, I want it to change to Pending Approval on submit.
I have an entry, whose status is Inactive. But, when I am logged in as a member and I submit the safecracker form for that entry, the status gets changed to ‘closed’.
And oddly, if I change the conditional to read:
{if status != "Inactive"}<input name="status" type="hidden" value="Pending Approval"/> {/if}saying the status does not equal Inactive, when I submit, it changes to ‘Pending Approval’, the opposite of what should happen.
I tried putting the input statement in an embed, and also the whole conditional, but the result was the same.
Also, if relevant, I have status=“Active for 2012-2013|Pending Approval|Inactive” included in the parameters.
I’m using EE 2.4.0 and Safecracker 2.1
What am I missing here?
Thanks
Susan