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: Approval Settings

Status Resolved
Add-on / Version Publisher Lite 2.7.9
Severity
EE Version 4.1.3

Fabcom

Apr 04, 2018

Trying to make changes to the approval settings. Basically trying to make the Admin group able to save as published. I am checking one checkbox for “Admin” under the Publishers section and get:

Please correct the following errors.
Editors: The option you selected is not valid.
Publishers: The option you selected is not valid.
Can change languages: The option you selected is not valid.
Approval email list: The option you selected is not valid.

For the record, there are no editors selected
Admin is the only Publisher group selected
Can change languages has nothing selectded
Approval Email has nothing selected

 

#1

BoldMinded (Brian)

This is a known bug with EE. The checkbox/radio groups are not saving correctly.

#2

Fabcom

Comment has been marked private.

#3

BoldMinded (Brian)

I don’t know if there is a bug report for it. I was talking to Kevin directly about it. Basically a group of checkboxes or radios are not allowed to have blank value when submitted, you must choose at least 1 item. It was not this way in 3, and Publisher’s code did not change, and it stopped working in 4. Publisher is using the normal/native/correct way to generate a list of checkbox/radio fields, and at the time Kevin confirmed that it was doing something differently b/c they are created with React now as opposed to however they were made in EE3.

#4

Fabcom

Comment has been marked private.

#5

BoldMinded (Brian)

Have you tried signing into the demo.boldminded.com site to replicate it there?

#6

BoldMinded (Brian)

I just checked again locally, if I have 1 option in each group selected it saves fine. I only get errors when there is a group that does not have an option selected.

https://screenshots.firefox.com/5lefx0rIQpLjch51/ee400.vm

#7

BoldMinded (Brian)

Ok, that screenshot is a bad representation. I had previously selected valid options for those groups, but after unchecking them and re-saving it is throwing the error, but selecting the previously saved options b/c that is still what is saved in the database. Regardless, I’m still certain this is a native EE bug b/c I’m using the form services the same way I was in EE3.

#8

BoldMinded (Brian)

I’m going to try talking to Kevin today and see if we can sort this out.

#9

BoldMinded (Brian)

I still think there is something wrong with EE’s internals, but for now you can comment out this line in Publisher’s AbstractController.php file and it should let you save the settings.

https://www.dropbox.com/s/nvoy4vs0466ab14/Screenshot 2018-04-09 21.00.51.png?dl=0

#10

BoldMinded (Brian)

Here is the proper fix, and it is in fact an EE bug. Kevin found it, and I assume this fix will go into their next release.

https://www.dropbox.com/s/wxlns15alsh9lwi/Screenshot 2018-04-09 21.35.50.png?dl=0

Change that line from

$field['choices'][] = '';

to

$field['choices'][''] = '';

Going to close this ticket 😊

Login to reply