Commit 8e9ceafe authored by Ariel Barreiro's avatar Ariel Barreiro Committed by Daniel Wehner
Browse files

Issue #2915054 by hanoii, gg24: Allow the field to be used on aggregated views

parent 1ec741ad
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -62,9 +62,12 @@ class View extends FieldPluginBase {

  /**
   * {@inheritdoc}
   *
   * Only allow the field to be there, no other aggregation make sense
   */
  public function usesGroupBy() {
    return FALSE;
  public function buildGroupByForm(&$form, FormStateInterface $form_state) {
    parent::buildGroupByForm($form, $form_state);
    $form['group_type']['#options'] = [$form['group_type']['#options']['group']];
  }

  /**