Metatavu / wordpress-kunta-api-core

Wordpress plugin core functionalities for Kunta API integrations
https://www.metatavu.fi/kuntaapi/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Gutenberg printable form new locale #271

Closed anttileppa closed 5 years ago

anttileppa commented 5 years ago

Expected Behavior

Add title to unused locale of printable form, saving should be disabled because all required fields are not filled

Actual Behavior

Save button remains enabled and clicking it causes following error:

An error occurred: {"WebPage":["Required value was not found with language code 'sv'!"],"ServiceChannelDescriptions":["Required value with type 'ShortDescription' was not found with language code 'sv'!","Required value with type 'Description' was not found with language code 'sv'!"]}.

Steps to Reproduce the Problem

  1. Embed service with attached
  2. Edit service
  3. Edit service channels
  4. Edit printable form
  5. Change locale to previously unused locale
  6. Enter title