Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create new items because of "date_updated" field problems #12058

Closed
3 tasks done
PostPollux opened this issue Mar 9, 2022 · 2 comments
Closed
3 tasks done

Comments

@PostPollux
Copy link

PostPollux commented Mar 9, 2022

Preflight Checklist

Describe the Bug

Creating new items of a collection with "date_updated" field fails (with user interface). It just seems to do nothing, when hitting the green checkmark in the top right.

When I create a collection WITHOUT the "date_updated" field, everything works as expected. No problems with adding new items through the user interface. Also "date_created" has no problems.

To Reproduce

  1. create a collection that has the "date_updated" field.
  2. Create an arbitrary field for that collection. e.g. an input field.
  3. In the userinterface go to the collection and click on the plus to add your first item to the collection
  4. Fill in the data and click on the checkmark button.

Errors Shown

I get a 400 BadRequest and this is in the response body of the request:

{
   "errors":[
      {
         "message":"\"date_updated\" is required",
         "extensions":{
            "code":"FAILED_VALIDATION",
            "field":"date_updated",
            "type":"required"
         }
      }
   ]
}

What version of Directus are you using?

9.6 (error also happens in 9.5.1)

What version of Node.js are you using?

probably the one which is shipped with the docker container

What database are you using?

MariaDB 10.5 but also tried MariaDB 10.7

What browser are you using?

Firefox 97.0.2, Chrome 99.0.48444.51 (happens with both)

What operating system are you using?

Windows 10 and Linux Manjaro (happened with both)

How are you deploying Directus?

Docker

@azrikahar
Copy link
Contributor

This might be duplicate of or related to #11676 and #10693. Would you mind trying either #11676 (comment) or #10693 (comment) and see whether that resolves it for you?

@rijkvanzanten
Copy link
Member

Thank you for taking the time to submit this! Unfortunately, our team was not been able to reproduce it based on the information provided. Therefore, we will close this ticket for now, but will happily re-open it if new details are provided that allow us to reliably replicate the problem.

As a reminder:

  • Provide as much detail as possible in the issue description
  • Video screen captures and clear steps are very helpful
  • A full SQL dump is the fastest way for us to test/resolve (can be sent privately)
  • Make sure you are on the latest version of Directus
  • Did you try turning it off and on again?

This is an automated response.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants