// ELMO.Report.EditPane
(function(ns, klass) {

  // constructor
  ns.EditPane = klass = function() {
  }

  klass.prototype.build = function() {
    // get refs
    this.cont = $("div.report_edit_pane." + this.id);
    this.error_box = this.cont.find("div.error_box")
  }

  klass.prototype.show = function() {
    this.cont.show();
  }

  klass.prototype.hide = function() {
    this.cont.hide();
  }

  klass.prototype.broadcast_change = function(attrib) {
    this.extract();
    this.parent_view.broadcast_change(attrib);
  }

  klass.prototype.show_validation_errors = function() {
    var fields = this.fields_for_validation_errors ? this.fields_for_validation_errors() : [];
    var errors = [];
    if (this.report)
      for (var i = 0; i < fields.length; i++)
        errors = errors.concat(this.report.errors.get(fields[i]));
    this.has_errors = errors.length > 0;
    this.error_box.html(errors.join("<br/>"));
    this.error_box[this.has_errors ? "show" : "hide"]();
  }

}(ELMO.Report));
// ELMO.Report.EditPane
(function(ns, klass) {

  // constructor
  ns.EditPane = klass = function() {
  }

  klass.prototype.build = function() {
    // get refs
    this.cont = $("div.report_edit_pane." + this.id);
    this.error_box = this.cont.find("div.error_box")
  }

  klass.prototype.show = function() {
    this.cont.show();
  }

  klass.prototype.hide = function() {
    this.cont.hide();
  }

  klass.prototype.broadcast_change = function(attrib) {
    this.extract(true);
    this.parent_view.broadcast_change(attrib);
  }

  klass.prototype.show_validation_errors = function() {
    var fields = this.fields_for_validation_errors ? this.fields_for_validation_errors() : [];
    var errors = [];
    if (this.report)
      for (var i = 0; i < fields.length; i++)
        errors = errors.concat(this.report.errors.get(fields[i]));
    this.has_errors = errors.length > 0;
    this.error_box.html(errors.join("<br/>"));
    this.error_box[this.has_errors ? "show" : "hide"]();
  }

}(ELMO.Report));
Call to extract was missing param.
2821: Call to extract was missing param.

It wasn't setting the form_ids and, as a result, always showing
all questions (Using ALL for the form_ids).
