Unique property is not respected between language versions and not at all with whole numbers
Two issues with unique not being properly respected on content:
1) Text fields that are unique should not allow duplicates in the same language version or ANY OTHER new contentlet language version. If it is NOT the same contentlet, the field values should not be able to be replicated... but right now we are allowing the same value for a "unique" text field as long as they are two different language versions. We need to make sure that the "unique" property is checking all existing language versions of the content for a duplicate value.
2) Text fields that have the "Whole Number" data type do not respect the "unique" property at all. You can basically add the same number over and over again in the same language version.
Expected Behavior
unique property should never allow two different contentlets to have the same value for that field - even if the language versions are different
-Text fields marked as whole numbers should respect the unique property.
Current Behavior
whole numbers do not respect uniqueness at all Text fields only respect uniqueness with the same language version

Steps to Reproduce (for bugs)
- Create a new Content Type with a unique text field and a unique text field with the whole number datatype
- Create two pieces of content in English that have the same number for field number two- bug
- Create a piece of content in English with simple text for field one. Then create a second piece of content IN SPANISH and place the same text in the first field. - bug -uniqueness should be respected, regardless of language version when you are creating two totally different pieces of content.
Here is a screencast of demo.dotcms.com (3.6 version): http://screencast.com/t/KWprUmZBUoE
Tested on 3.6 - Unique property is not respected by custom fields either :-(
PR: https://github.com/dotCMS/core/pull/12535
This isn't working if you try via push publish
Not sure if that even should be checked during push publish. I think that it should only be checked when you either create or save content locally. Not sure if we should be checking this on push. The error would require mismatched content authoring on sender and receiver in order to produce right? Impossible to create this error if client is using a single point of content authoring. And even then, when you edited either dupe unique on the receiver, you would be forced to change the value before you could save right? Let me know if you want to discuss.
Note to QA: Field-Value Uniqueness only applies if contents are in the same Language, so this makes point 1. not valid. This was address on a different ticket.
Please focus only on point 2.
Passed QA. Fix covers bullet point #2 as point #1 doesn't apply. So when text fields have the "Whole Number" data type, "unique" property is respected, meaning same number in the same language version cannot be used again.


Tested on master branch Commit eb534ce3527c2e72c97b4b5c10607a76c85e45e5 on Sep 26, 2017 Mac OS 10.10 / Postgres 9.3.7 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8