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: Status for Approved Entries Not Changing

Status Resolved
Add-on / Version Publisher 2.8.2
Severity
EE Version 4.3.1

Gregory Maher

Jun 11, 2018

Hi Brian,
So we’re seeing some odd behavior from a site recently updated to 4.3.1 and 2.8.2. It seems that Publisher is not updating the status on Approval.

We were originally having a problem with new Entries not saving as no Status was selected. So, we set the default status for new entries in a particular channel to Open. That caused an issue in that new Entries input by Editors were immediately live when submitted for approval…even prior to Approval by a Publisher. So, we changed the default Status for new entries to be Draft. Now, the approval workflow works as designed, but choosing to Approve and Preview or Approve and Save, the status is not updated from Draft to Open, thus not setting the entry live.

And, after the form is submitted the previous entry does not load, but rather a blank New Entry form for the same Channel.

I hope this is helpful in troubleshooting. I’ve created login info for you as well.

Thanks!

Greg

#1

Gregory Maher

Hi Brian, We put a workaround in place for this, but it seems like an additional step is required. And, this only seems to be an issue for new Entries created by Editors, not Publishers.

The workaround is as follows: • Set the default Status for a Channel to Draft. • Create a Layout for each channel that hides the Options tab of the Publish/Edit screen for Editors. • Have the Publishers know they must manually change the status to Open when the Approve something to Published.

This is not terrible, as it’s only for the initial creation of the entry. Subsequent edits should be properly handled by Publisher (we haven’t tested this yet, but assume it to be working. But, it’d be great if the Approval of a new entry also set the Status to Open automatically.

Are you able to replicate the issue? Can I provide any additional detail?

Thanks!

Greg

#2

BoldMinded (Brian)

I’m unable to replicate this. In my dev environment I logged in as an editor, created a new entry, marked it for needing approval, and saved. At this point when I look at the exp_channel_titles table I see that it’s status is set to “Draft”. Then I login as an admin, click “Approve Draft and Close” and it saves the entry and updates the status to “open” in the exp_channel_titles table, and now I see an “open” and “draft” row in the exp_publisher_titles table for that entry. Are you seeing something different?

#3

Gregory Maher

Do you have a default Status set for new entries? Are your Editors able to change entry status’s independent of Publisher?

I oddly have two Draft Statuses for Entries in our site. Are these correct? (see here: https://www.dropbox.com/s/0l4eps3p3whl3l1/Screen Shot 2018-06-12 at 3.45.42 PM.png?dl=0)

When I create a new Entry as an Editor, the exp_channel_titles table does correctly show “Draft”.

When I “Approve undefined and Close” the exp_channel_titles table changes the status to “draft”. (note the lowercase d…and check out the screenshot above).

Should I attempt to remove one of those Statuses? I don’t believe we created new ones…maybe something during an upgrade from ExpressionEngine 2 -> 4?

Thanks!

Greg

#4

BoldMinded (Brian)

There shouldn’t be 2 Draft statuses… try deleting one and seeing what happens. I’m guessing they’re id’s # 3 and 5, I’d delete #5. Check the channel_titles table for the status_id column to see if 5 is being used anywhere, and if it is change it to #3, then delete.

#5

BoldMinded (Brian)

Comment has been marked private.

#6

Gregory Maher

Hi Brian, I removed the extra Draft status and all worked I believe. Then I updated to the above build, and while the copy in the buttons is correct, Entries are once again not publishing on Approval. And the status in exp_channel_titles is still set to draft (16).

#7

BoldMinded (Brian)

What happens if you remove that extra draft status, and revert to the previous Publisher build? E.g. don’t use the one I just sent.

#8

BoldMinded (Brian)

Greg, any updates on this?

#9

Gregory Maher

Comment has been marked private.

#10

BoldMinded (Brian)

Comment has been marked private.

#11

BoldMinded (Brian)

Greg, have you had a chance to try the build mentioned in my previous comment?

Login to reply