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: When disabled and ‘default view state’ is set to ‘draft’, matrix tries to load ‘draft’ entries in CP

Status Resolved
Add-on / Version Publisher 1.1.4
Severity Trivial
EE Version 2.7.3

Hans Rhodes

Feb 18, 2014

Hallo,

When Publisher is disabled and an entry is brought up in the CP, Publisher still checks the ‘default view state’ setting for the proper matrix entries. So even if Publisher is disabled and the default view state is ‘draft’, it will attempt to bring up the draft version.

A quick fix seems to be to add this to Publisher_matrix_hooks.php around line 79:

if ( !ee()->publisher_setting->enabled())
        {
            $publisher_status = 'open';
        }

I noticed that ee()->TMPL->fetch_param(‘publisher_status’) still gets set to ‘draft’ when disabled, maybe it would better to default to open when disabled?

#1

BoldMinded (Brian)

Thanks for that. I made similar changes to all the other P&T fieldtypes as well. Will be in the next release.

Login to reply