Ticket #3072 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Autosave breaks when there are no categories selected

Reported by: matt Assigned to: anonymous
Priority: high Milestone: 2.1
Component: Administration Version: 2.1
Severity: normal Keywords:
Cc:

Description

Steps to recreate:

  • Start a post
  • Uncheck any category boxes
  • Wait until autosave kicks in

This is the error message I saw:

WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 2] INSERT INTO wp_post2cat (post_id, category_id) VALUES (55, )

Change History

08/27/06 17:58:59 changed by matt

  • priority changed from normal to high.
  • version set to 2.1.
  • milestone set to 2.1.

08/27/06 19:26:05 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

(In [4119]) Handle posts with an empty cat list. fixes #3072

08/27/06 19:38:10 changed by matt

Just to confirm, does this still insure that every post has at least 1 category? (The default.)

08/27/06 19:44:42 changed by ryan

yes