core icon indicating copy to clipboard operation
core copied to clipboard

Can't save content by checkbox with similar values

Open litked opened this issue 11 years ago • 8 comments

  1. Create new ContentType 'MyContentType'

  2. Create new field 'MyCheckbox' (type Checkbox)

  3. Edit field 'MyCheckbox'. Set value

    • canada|Canada
    • canada-new|Canada New
  4. Create new contentlet of type 'MyContentType'

  5. Edit new contentlet. Check both checkboxes. Save. Result: both checkboxes are 'checked'. OK

  6. Edit new contentlet. Check off both checkboxes. Save. Result: both checkboxes are still 'checked'!

Reproduced on http://demo.dotcms.com/

litked avatar Apr 29 '15 13:04 litked

Tested on the last 3.2 and not able to reproduce...

bryanboza avatar May 06 '15 20:05 bryanboza

Closing this one as it is not reproducible in latest release.

oarrietadotcms avatar May 08 '15 20:05 oarrietadotcms

Sorry, here is correct description:

  1. Create new ContentType 'MyContentType'
  2. Create new field 'MyCheckbox' (type Checkbox)
  3. Edit field 'MyCheckbox'. Set value Canada|canada Canada New|canada-new
  4. Create new contentlet of type 'MyContentType'
  5. Edit new contentlet. Check only 'Canada New'. Save. Result: both checkboxes are 'checked'!

Reproduced today on http://demo.dotcms.com/ Screencast: http://screencast.com/t/h7VLq7L1e

litked avatar May 10 '15 16:05 litked

@rogelio-blanco could you please try to reproduce and fix it? Thanks!

oarrietadotcms avatar May 11 '15 13:05 oarrietadotcms

I was able to reproduce it. I will continue with the fix

rogelio-blanco avatar May 11 '15 19:05 rogelio-blanco

pull request #7728

rogelio-blanco avatar May 13 '15 15:05 rogelio-blanco

Tested on: 3.2 Nightly build 2015-05-14 04:13 // Ubuntu 14.04 // Postgres // Firefox

shaydotcms avatar May 14 '15 16:05 shaydotcms

Added TC http://qa.dotcms.com/index.php?/cases/view/59161

shaydotcms avatar Jun 15 '15 19:06 shaydotcms