Score:-2

Diff module shows 'No visible changes' for 'Geolocation' and 'International phone' fields

cn flag

I have "No visible changes" message for 'Geolocation' and 'International phone' fields change and have only one option "Don't compare" in Diff field configuration page /admin/config/content/diff/fields.

Can you help me fix this issue?

Score:1
us flag

The Diff module can only compare fields for which a @FieldDiffBuilder class is implemented for that field and that class offers options for comparing that field.
For example, for a comment field, the Diff module implements the CommentFieldBuilder class, for which the options are given by CommentFieldBuilder::buildConfigurationForm().

$form['compare_key'] = array(
  '#type' => 'checkbox',
  '#title' => $this->t('Compare comment status key'),
  '#default_value' => $this->configuration['compare_key'],
);
$form['compare_string'] = array(
  '#type' => 'checkbox',
  '#title' => $this->t('Compare comment status string'),
  '#default_value' => $this->configuration['compare_string'],
);

return parent::buildConfigurationForm($form, $form_state);

There isn't any issue in the module. A module should change the @FieldDiffBuilder class associated with the Geolocation and International phone fields, to make the Diff module able to compare their values.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.