Comments

androiditya created an issue. See original summary.

aditya.n’s picture

Status: Active » Needs review
StatusFileSize
new590 bytes

Submitting patch for the same after making changes.

markdorison’s picture

Issue summary: View changes
Status: Needs review » Needs work
+++ b/core/modules/locale/src/Form/ExportForm.php
@@ -85,7 +85,7 @@ public function buildForm(array $form, FormStateInterface $form_state) {
+        '#open' => TRUE,

Shouldn't #open be set to FALSE to preserve the existing functionality, or is the change intentional?

aditya.n’s picture

Status: Needs work » Needs review
StatusFileSize
new591 bytes

@markdorison, yes you are right, the value of #open should be FALSE by default, silly of me not to consider that, Thanks for the correction.

Submitted the latest patch with the required changes.

markdorison’s picture

Status: Needs review » Reviewed & tested by the community

Patch works as expected.

amit.drupal’s picture

#4 Patch is working fine.

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs work

Since '#open' => FALSE is the default value, I think it makes more sense to simply remove the line altogether.

amit.drupal’s picture

StatusFileSize
new564 bytes
new300 bytes

@tstoeckler You are right .
Default value of '#collapsed' => TRUE and '#open' => FALSE.
so remove this line in code.
submit patch please review it.

amit.drupal’s picture

Status: Needs work » Needs review
markdorison’s picture

Status: Needs review » Reviewed & tested by the community

Patch applies cleanly and works as expected.

cilefen’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs title update

Let's please fix the issue title so this makes sense in the commit log.

markdorison’s picture

Title: Replace #collapsed with #open » Remove outdated #collapsed Form API property
Status: Needs work » Needs review
Issue tags: -Needs title update
cilefen’s picture

@markdorison: You can put it back to RTBC if you think it is.

lomasr’s picture

StatusFileSize
new591 bytes

As per https://www.drupal.org/node/2204131 . Replacing '#collapsed' with '#open'.

lomasr’s picture

markdorison’s picture

Status: Needs review » Reviewed & tested by the community

@lomasr: We reviewed and evolved an identical patch in #4 through #8. Patch in #8 is RTBC.

tstoeckler’s picture

StatusFileSize
new564 bytes

Re-uploading patch from #8 so that it's the latest.

xjm’s picture

Title: Remove outdated #collapsed Form API property » Remove dead code with #collapsed Form API property

Clarifying title to make it clear that we are not making a BC break, just removing dead code.

  • xjm committed fb65cd2 on 8.3.x
    Issue #2806179 by androiditya, amit.drupal, tstoeckler, lomasr,...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

I confirmed that there are no other remaining references to or usages of this property:

[drupal | Sun 12:43:56] $ grep -r "\#collapsed" *
core/modules/locale/src/Form/ExportForm.php:        '#collapsed' => TRUE,

Committed fb65cd2 and pushed to 8.3.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.