hhuijser/liferay-portal — pull request #611 by shinnlok (2012-05-04 19:50:09+00:00)
Title: LPS-27105 Rows in collapsed panels are being removed by visible check, c...

...learHiddenRows instead

Reviewed by Jon Mak. On a related side note, contentBox in save is never used after clearing hidden rows. If it is used (passed in to serialize), it could be incorrect because the entire form is passed/instead of just the contentBox containing the auto fields.

In summary, it looks like the form isn't and shouldn't be used. The save function as a result would just call serialize and sets fieldInstances with it's values.

```javascript
save: function(form) {
var instance = this;

var contentBox = form || instance._contentBox;

contentBox.all('.lfr-form-row').each(instance._clearHiddenRows, instance);
```