defaultValue parameter for preparePlainTextValue

I added this parameter in order to make preparePlainTextValue handle
null (empty) value too, since it is already responsible for truncating the value
if too big. The default value is null, so it will maintain
its original behavior and permits fallback when the plain text value
is empty.
prepareAssociationsDrawerXMLElement

make child associations call
$field->prepareAssociationsDrawerXMLElement just like parents do.
Added the missing prepopulate value

This is required in order to make the function compatible with both
child and parent relationships.
Fallback value for DrawerXMLElement

Since prepareAssociationsDrawerXMLElement is kind of
new, 99% of the fields do not implement it. Instead, they
rely on their prepareTableValue implementation to make
association drawer work. But, drawer now directly calls
preparePlainTextValue, some field were displaying nothing.
This fix actually calls prepareTableValue if the plainTextValue
is empty. This could be removed in future versions.
Deprecate fetchAssociatedEntryIDs

this method is not called anymore in the core.
A quick Google search confirm that no 3rd party field is
actually usign it. A search in the entire project results in

Searching 2883 files for "fetchAssociatedEntryIDs"

symphony-2\symphony\lib\toolkit\class.field.php:
1545       *  return an array of the associated entry ids.
1546       */
1547:     public function fetchAssociatedEntryIDs($value)
1548      {
1549

symphony-2\symphony\lib\toolkit\fields\field.select.php:
128      }
129
130:     public function fetchAssociatedEntryIDs($value)
131      {
132          return Symphony::Database()->fetchCol('entry_id', "SELECT `entry_id` FROM `tbl_entries_data_".$this->get('id')."` WHERE `value` = '".Symphony::Database()->cleanValue($value)."'");

2 matches across 2 files

The select box implementation can be kept and reused.
Delegate relation finding to fields

This proposed change make the fields reposible for
finding relations. This change takes methods that were
in content.publish.php and moves them to the Field class,
preserving all compatibility.
Reponsability is put in the right container and
Field implementors will now be able to defines their own mecanism
in order to create relationships.
null check instead of empty check

As suggested by @psychoticmeow, use the null comparison
in order to let 0 be a valid default value.
Fix publish filtering

Clearing and pagination, fixes #2091
Unify association field settings, introduce interfaces to tag lists
Show association settings only when needed
Give a little more flexibility to the General::array_to_xml method by allowing it to handle object children
data-required attribute

This fix adds a declarative option in order to prevent automatic
insertion of the 'none' option.
new assets build
Merge pull request #2114 from DeuxHuitHuit/data-required

Data required attribute for .js-fetch-sections
Merge pull request #2102 from DeuxHuitHuit/find-related-entries

Move finding related entries logic to the Field class.
Collapsible without duplicator bug fix

If the collapsible is used without the duplicator, the animationend
event was not properly triggered. This fix adds a new trigger.
new assets build
Merge pull request #2113 from DeuxHuitHuit/collapsible

Collapsible bug when not used with duplicator
Fix indentation

Closes #1621
Make selector more specific

Fixes #2115

Conflicts:

	symphony/assets/js/symphony.min.js