HeyPublisher / heypublisher-submission-manager

HeyPublisher Wordpress Plugin
GNU General Public License v2.0
2 stars 1 forks source link

Unable to turn off "accepting submissions" toggle once set #110

Closed aguywithanidea closed 4 years ago

aguywithanidea commented 4 years ago

A bug was introduced in 3.0.0 when the form field accepting_subs was changed to active to marry up with the JSON response coming from HeyPublisher server. The accepting_subs attribute controls whether or not the submission form displays on the submission page. This attribute gets set to true when the plugin is initially installed, but then is recalculated based on the value of the "Currently Accepting Submissions?" toggle and whether or not the publication has genres selected.

It was not getting recalculated properly.