Properties such as 'errors' and 'module' are getting exported. They should not be.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

'module' is intentionally exported:

      // Even though Flag adds the module name itself later, we add the module
      // name here for reference by other modules (such as Features).
      $new_flag['module'] = $module;
joachim’s picture

Status: Active » Needs review
FileSize
1.42 KB

Figured this bit of the code could use a little clean-up at the same time.

shabana.navas’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
816 bytes
783 bytes

I have tested this now and I can confirm it works. I have attached the before and after versions of the export. The original exported the 'errors' array. However, after the patch was applied, the 'errors' array, as expected, was not exported.

joachim’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the review!

Committed.

Status: Fixed » Closed (fixed)

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