Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Publisher/Safecracker approval sending

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version 24

brygeaux

Jul 17, 2013

Hello!

I noticed on your safecracker page for Publisher you suggest using

<input type="hidden" name="send_approval" value="y" />

in order to send an approval.

However, when I use this it appears no approval gets sent, and I don’t see an entry added to the exp_publisher_approvals table.

I did notice in the cp the form uses

<input type="hidden" name="publisher_flag" value="y" />

And when I test this out in a safecracker form, it does work.  So is this what we should be using in our safecracker forms?

 

 

#1

BoldMinded (Brian)

I’ll have to double check. I’m pretty sure this worked last time checked it.

#2

BoldMinded (Brian)

If you feel comfortable editing PHP files open the models/publisher_approval.php file and change the validate() method to this:

protected function validate()
    {
        if (ee()->publisher_role->current != ROLE_PUBLISHER && (ee()->input->post('publisher_flag') || ee()->input->post('send_approval')))
        {
            return TRUE;
        }

        return FALSE;
    }
#3

brygeaux

It works, thanks!

Login to reply