EE4 compatibility updates:

  • Publisher is EE4 and EE5 compatible, but it does not currently support the Fluid field (it's in the works).
  • Reel is EE4 and EE5 compatible, but it does not currently support the Fluid field.

Ticket: Entries in ignored channels still set to Closed when edited by Editors

Status Resolved
Add-on / Version Publisher 1.0.14
Severity Critical
EE Version 2.7.2

Arthur de Wolf

Nov 05, 2013

When an Editor saves an entry in an ignored channel (with Drafts enabled) the status is set to Closed anyway.

I expected the workflow functionality to be disabled when a channel is ignored. There are no View, Save As or Send for approval options at the top of the edit page.

#1

BoldMinded (Deprecated)

The only thing I can think of at the moment is to update the 2 functions in the ext.publisher.php file. The save methods don’t get called if its ignored, so it shouldn’t be messing with statuses.

public function entry_submission_ready($meta, $data, $autosave)
    {
        if ( !isset($meta['channel_id']) || ee()->publisher_model->is_ignored_channel($meta['channel_id']))
        {
            return;
        }
        
        ee()->publisher_lib->is_new_entry = ($data['entry_id'] == 0) ? TRUE : FALSE;
    }

    /**
     * Before the entry is submitted and validation passed, see
     * if we need to delete anything instead of saving an entry.
     *
     * @param 
     * @return 
     */
    public function entry_submission_start($channel_id, $autosave)
    {
        if ( !isset($meta['channel_id']) || ee()->publisher_model->is_ignored_channel($channel_id))
        {
            return;
        }

        $redirect = FALSE;
#2

Arthur de Wolf

This problem persists with the latest build 1.0.15.

When an Editor saves an entry in an ignored channel the entry goes to Closed. I expect Publisher to not do anything with entries in ignored channels.

#3

BoldMinded (Deprecated)

Did you disable Publisher via its setting and see if it saves the correct status?

#4

Arthur de Wolf

After disabling Publisher via its setting I can still only save as Closed when logged in as Editor.

Sorry about that. I guess it has nothing to do with Publisher, although I have no idea what setting in EE is causing this. The member group has access to the Open status.

Thanks, Arthur

#5

BoldMinded (Deprecated)

No worries. Does the channel have a status group assigned to it?

#6

Arthur de Wolf

No special status group, just the standard open/closed.

#7

BoldMinded (Deprecated)

Arthur, I’m unable to replicate this. I made one of my channels ignored, made sure it has an Open and Closed status in its assigned status group, edited it as a member assigned as an Editor in Publisher, and it saved the entry with the Published status (which is just the display title for “open”).

#8

BoldMinded (Deprecated)

Have you verified another add-on isn’t causing the issue?

#9

Brian Litzinger

Arthur, closing this thread b/c I haven’t heard a follow up on it. If its still an issue just create a new ticket or email me.

Login to reply